diff options
| author | github-actions <github-actions@github.com> | 2022-08-21 23:08:11 +0000 |
|---|---|---|
| committer | github-actions <github-actions@github.com> | 2022-08-21 23:08:11 +0000 |
| commit | 27af358ef158d76e27c91cbf7a83fb38fc6caedc (patch) | |
| tree | d7f3758c3df09641ffa3dfa6d506e40730fb970e /doc | |
| parent | feat: add nil support (#2053) (diff) | |
| download | nvim-lspconfig-27af358ef158d76e27c91cbf7a83fb38fc6caedc.tar nvim-lspconfig-27af358ef158d76e27c91cbf7a83fb38fc6caedc.tar.gz nvim-lspconfig-27af358ef158d76e27c91cbf7a83fb38fc6caedc.tar.bz2 nvim-lspconfig-27af358ef158d76e27c91cbf7a83fb38fc6caedc.tar.lz nvim-lspconfig-27af358ef158d76e27c91cbf7a83fb38fc6caedc.tar.xz nvim-lspconfig-27af358ef158d76e27c91cbf7a83fb38fc6caedc.tar.zst nvim-lspconfig-27af358ef158d76e27c91cbf7a83fb38fc6caedc.zip | |
docs: update server_configurations.md
skip-checks: true
Diffstat (limited to 'doc')
| -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 |
