From 2cb7c48d53f7ac37d8fbc93438705d09e304a74a Mon Sep 17 00:00:00 2001 From: twoneis Date: Mon, 12 Aug 2024 02:24:33 +0200 Subject: [PATCH] cpp to helix --- modules/utils/helix-languages.conf.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/utils/helix-languages.conf.nix b/modules/utils/helix-languages.conf.nix index 07a7ff7..3a25dd3 100644 --- a/modules/utils/helix-languages.conf.nix +++ b/modules/utils/helix-languages.conf.nix @@ -28,5 +28,11 @@ formatter = { command = "clang-format"; args = [ "-style=file" ]; }; indent = { tab-width = 8; unit = " "; }; file-types = [ "c" "h" ]; + } { + name = "cpp"; + auto-format = true; + formatter = { command = "clang-format"; args = [ "-style=file" ]; }; + indent = { tab-width = 8; unit = " "; }; + file-types = [ "cpp" "hpp" ]; }]; }