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" ]; }]; }