Skip to content

Commit 06524ec

Browse files
authored
feat: nixd config for helix (#4059)
2 parents 73a8a76 + 67e631b commit 06524ec

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.helix/languages.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
[language-server.nixd]
2+
command = "nixd"
3+
4+
[language-server.nixd.config.nixpkgs]
5+
expr = "import (builtins.getFlake (builtins.toString ./.)).inputs.nixpkgs { }"
6+
17
[language-server.astro-ls]
28
args = ["--stdio"]
39
command = "astro-ls"
@@ -106,6 +112,15 @@ name = "svelte"
106112
roots = ["svelte.config.js"]
107113
scope = "source.svelte"
108114

115+
[[language]]
116+
comment-token = "#"
117+
file-types = ["nix"]
118+
indent = { tab-width = 2, unit = " " }
119+
injection-regex = "nix"
120+
language-servers = ["nixd"]
121+
name = "nix"
122+
scope = "source.nix"
123+
shebangs = []
109124

110125
[[grammar]]
111126
name = "astro"

0 commit comments

Comments
 (0)