diff options
| -rw-r--r-- | doc/server_configurations.md | 37 | ||||
| -rw-r--r-- | doc/server_configurations.txt | 37 |
2 files changed, 74 insertions, 0 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md index 1be46352..a9c364b2 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -87,6 +87,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running - [mint](#mint) - [mm0_ls](#mm0_ls) - [nickel_ls](#nickel_ls) +- [nil_ls](#nil_ls) - [nimls](#nimls) - [ocamlls](#ocamlls) - [ocamllsp](#ocamllsp) @@ -3682,6 +3683,42 @@ require'lspconfig'.nickel_ls.setup{} ``` +## nil_ls + +https://github.com/oxalica/nil + +A new language server for Nix Expression Language. + +If you are using Nix with Flakes support, run `nix profile install github:oxalica/nil` to install. +Check the repository README for more information. + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.nil_ls.setup{} +``` + + +**Default values:** + - `cmd` : + ```lua + { "nil" } + ``` + - `filetypes` : + ```lua + { "nix" } + ``` + - `root_dir` : + ```lua + root_pattern("flake.nix", ".git") + ``` + - `single_file_support` : + ```lua + true + ``` + + ## nimls https://github.com/PMunch/nimlsp diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt index 1be46352..a9c364b2 100644 --- a/doc/server_configurations.txt +++ b/doc/server_configurations.txt @@ -87,6 +87,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running - [mint](#mint) - [mm0_ls](#mm0_ls) - [nickel_ls](#nickel_ls) +- [nil_ls](#nil_ls) - [nimls](#nimls) - [ocamlls](#ocamlls) - [ocamllsp](#ocamllsp) @@ -3682,6 +3683,42 @@ require'lspconfig'.nickel_ls.setup{} ``` +## nil_ls + +https://github.com/oxalica/nil + +A new language server for Nix Expression Language. + +If you are using Nix with Flakes support, run `nix profile install github:oxalica/nil` to install. +Check the repository README for more information. + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.nil_ls.setup{} +``` + + +**Default values:** + - `cmd` : + ```lua + { "nil" } + ``` + - `filetypes` : + ```lua + { "nix" } + ``` + - `root_dir` : + ```lua + root_pattern("flake.nix", ".git") + ``` + - `single_file_support` : + ```lua + true + ``` + + ## nimls https://github.com/PMunch/nimlsp |
