restructure
This commit is contained in:
parent
20b2af86d7
commit
8cf8c5609d
26 changed files with 265 additions and 283 deletions
32
modules/utils/helix-languages.conf.nix
Normal file
32
modules/utils/helix-languages.conf.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
language-server = {
|
||||
asm-lsp = {
|
||||
command = "asm-lsp";
|
||||
};
|
||||
};
|
||||
|
||||
language = [{
|
||||
name = "gas";
|
||||
scope = "source.gas";
|
||||
auto-format = false;
|
||||
language-servers = [ "asm-lsp" ];
|
||||
indent = { tab-width = 8; unit = " "; };
|
||||
roots = [];
|
||||
file-types = [ "S" ];
|
||||
} {
|
||||
name = "json";
|
||||
auto-format = true;
|
||||
formatter = { command = "prettier"; args = [ "--parser" "json" ]; };
|
||||
} {
|
||||
name = "jsonc";
|
||||
auto-format = true;
|
||||
formatter.command = "prettier";
|
||||
formatter.args = [ "--parser" "jsonc" ];
|
||||
} {
|
||||
name = "c";
|
||||
auto-format = true;
|
||||
formatter = { command = "clang-format"; args = [ "-style=file" ]; };
|
||||
indent = { tab-width = 8; unit = " "; };
|
||||
file-types = [ "c" "h" ];
|
||||
}];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue