Editor Modes for Nix Files: Difference between revisions
imported>Inclyc m add nixd |
m propose merge |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{Merge|Nix (language)}} | |||
Nix language has decent syntax highlighting (SH) support among popular code editors, but refactoring/autocomplete is still rare. Below is a list of editor modes for Nix syntax. | Nix language has decent syntax highlighting (SH) support among popular code editors, but refactoring/autocomplete is still rare. Below is a list of editor modes for Nix syntax. | ||
== Language servers == | == Language servers == | ||
Most popular editors have support for the | Most popular editors have support for the [https://microsoft.github.io/language-server-protocol language server protocol], the following language servers can be used to provide features like completions and go-to-definition. | ||
* [https://github.com/oxalica/nil nil] | * [https://github.com/oxalica/nil nil] | ||
* [https://github.com/nix-community/rnix-lsp rnix-lsp] | * [https://github.com/nix-community/rnix-lsp rnix-lsp] | ||
Line 82: | Line 84: | ||
== nano == | == nano == | ||
* [https://github.com/seitz/nanonix nanonix] | * [https://github.com/seitz/nanonix nanonix] | ||
== micro == | |||
Syntax highlighting is built-in. LSP support is available through the [https://github.com/AndCake/micro-plugin-lsp <code>lsp</code> plugin]. | |||
== Codemirror == | == Codemirror == | ||
* [https://github.com/replit/codemirror-lang-nix codemirror-lang-nix] | * [https://github.com/replit/codemirror-lang-nix codemirror-lang-nix] | ||
== Zed == | |||
* [https://github.com/hasit/zed-nix zed-nix on github] | |||
== Relevant pages == | == Relevant pages == | ||
Line 93: | Line 101: | ||
[[Category:Nix Language]] | [[Category:Nix Language]] | ||
[[Category:Guide]] | [[Category:Guide]] | ||
[[Category:Text Editor]] |