helix: add nixd config
This commit is contained in:
parent
4313fc8704
commit
82e52b4f9b
3 changed files with 19 additions and 1 deletions
|
|
@ -1 +1,2 @@
|
||||||
|
[editor.lsp]
|
||||||
|
display-inlay-hints = true
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
programs.helix = {
|
programs.helix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = builtins.fromTOML (builtins.readFile ./config.toml);
|
settings = builtins.fromTOML (builtins.readFile ./config.toml);
|
||||||
|
languages = builtins.fromTOML (builtins.readFile ./languages.toml);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
16
modules/home/cliPrograms/helix/languages.toml
Normal file
16
modules/home/cliPrograms/helix/languages.toml
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
[[language]]
|
||||||
|
name = "nix"
|
||||||
|
scope = "source.nix"
|
||||||
|
injection-regex = "nix"
|
||||||
|
file-types = ["nix"]
|
||||||
|
shebangs = []
|
||||||
|
roots = ["flake.lock"]
|
||||||
|
auto-format = true
|
||||||
|
comment-token = "#"
|
||||||
|
block-comment-tokens = { start = "/*", end = "*/" }
|
||||||
|
language-servers = ["nil", "nixd"]
|
||||||
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
|
|
||||||
|
[language-server.nixd]
|
||||||
|
command = "nixd"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue