diff options
| author | Ruixi-rebirth <ruixirebirth@gmail.com> | 2023-06-03 00:12:53 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-03 14:12:53 +0800 |
| commit | b81653e405e9f4fc892fbd4039d6547aa36308b7 (patch) | |
| tree | 6a3b2b2c188deeb6b97be253757690ad2005d0ad /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-b81653e405e9f4fc892fbd4039d6547aa36308b7.tar nvim-lspconfig-b81653e405e9f4fc892fbd4039d6547aa36308b7.tar.gz nvim-lspconfig-b81653e405e9f4fc892fbd4039d6547aa36308b7.tar.bz2 nvim-lspconfig-b81653e405e9f4fc892fbd4039d6547aa36308b7.tar.lz nvim-lspconfig-b81653e405e9f4fc892fbd4039d6547aa36308b7.tar.xz nvim-lspconfig-b81653e405e9f4fc892fbd4039d6547aa36308b7.tar.zst nvim-lspconfig-b81653e405e9f4fc892fbd4039d6547aa36308b7.zip | |
feat: add nixd support (#2644)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/nixd.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/nixd.lua b/lua/lspconfig/server_configurations/nixd.lua new file mode 100644 index 00000000..36c84815 --- /dev/null +++ b/lua/lspconfig/server_configurations/nixd.lua @@ -0,0 +1,23 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'nixd' }, + filetypes = { 'nix' }, + single_file_support = true, + root_dir = util.root_pattern('flake.nix', '.git'), + }, + docs = { + description = [[ +https://github.com/nix-community/nixd + +Nix language server, based on nix libraries. + +If you are using Nix with Flakes support, run `nix profile install github:nix-community/nixd` to install. +Check the repository README for more information. + ]], + default_config = { + root_dir = [[root_pattern("flake.nix", ".git")]], + }, + }, +} |
