added .h files to c for formatting and lsp in helix
This commit is contained in:
parent
da84a3ddf4
commit
c7a37c8d2a
1 changed files with 5 additions and 4 deletions
|
@ -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" ];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue