diff options
| author | oxalica <oxalicc@pm.me> | 2022-08-22 07:07:52 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-21 16:07:52 -0700 |
| commit | ea32f35037c73303bce67a68cf5211fc9a68e5e5 (patch) | |
| tree | 0633de94d23e1fe1f268b68f22df500a83281580 | |
| parent | docs: vim.lsp.buf.formatting() is deprecated #2074 (diff) | |
| download | nvim-lspconfig-ea32f35037c73303bce67a68cf5211fc9a68e5e5.tar nvim-lspconfig-ea32f35037c73303bce67a68cf5211fc9a68e5e5.tar.gz nvim-lspconfig-ea32f35037c73303bce67a68cf5211fc9a68e5e5.tar.bz2 nvim-lspconfig-ea32f35037c73303bce67a68cf5211fc9a68e5e5.tar.lz nvim-lspconfig-ea32f35037c73303bce67a68cf5211fc9a68e5e5.tar.xz nvim-lspconfig-ea32f35037c73303bce67a68cf5211fc9a68e5e5.tar.zst nvim-lspconfig-ea32f35037c73303bce67a68cf5211fc9a68e5e5.zip | |
feat: add nil support (#2053)
| -rw-r--r-- | lua/lspconfig/server_configurations/nil_ls.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/nil_ls.lua b/lua/lspconfig/server_configurations/nil_ls.lua new file mode 100644 index 00000000..ff7ebba2 --- /dev/null +++ b/lua/lspconfig/server_configurations/nil_ls.lua @@ -0,0 +1,23 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'nil' }, + filetypes = { 'nix' }, + single_file_support = true, + root_dir = util.root_pattern('flake.nix', '.git'), + }, + docs = { + description = [[ +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. + ]], + default_config = { + root_dir = [[root_pattern("flake.nix", ".git")]], + }, + }, +} |
