added .h files to c for formatting and lsp in helix

This commit is contained in:
twoneis 2024-06-04 22:46:42 +02:00
parent da84a3ddf4
commit c7a37c8d2a

View file

@ -12,20 +12,21 @@
language-servers = [ "asm-lsp" ]; language-servers = [ "asm-lsp" ];
indent = { tab-width = 8; unit = " "; }; indent = { tab-width = 8; unit = " "; };
roots = []; roots = [];
file-types = ["S"]; file-types = [ "S" ];
} { } {
name = "json"; name = "json";
auto-format = true; auto-format = true;
formatter = { command = "prettier"; args = ["--parser" "json"]; }; formatter = { command = "prettier"; args = [ "--parser" "json" ]; };
} { } {
name = "jsonc"; name = "jsonc";
auto-format = true; auto-format = true;
formatter.command = "prettier"; formatter.command = "prettier";
formatter.args = ["--parser" "jsonc"]; formatter.args = [ "--parser" "jsonc" ];
} { } {
name = "c"; name = "c";
auto-format = true; auto-format = true;
formatter = { command = "clang-format"; args = ["-style=file"]; }; formatter = { command = "clang-format"; args = [ "-style=file" ]; };
indent = { tab-width = 8; unit = " "; }; indent = { tab-width = 8; unit = " "; };
file-types = [ "c" "h" ];
}]; }];
} }