helix: add nixd config

This commit is contained in:
Veneficium 2025-01-27 19:50:29 +01:00
parent 4313fc8704
commit 82e52b4f9b
3 changed files with 19 additions and 1 deletions

View file

@ -1 +1,2 @@
[editor.lsp]
display-inlay-hints = true

View file

@ -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);
}; };
}; };
} }

View 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"