diff options
| author | Raphael <glephunter@gmail.com> | 2024-04-23 20:56:41 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-23 20:56:41 +0800 |
| commit | 7bdc6b652f7cf6b163d26f58c04a19b390f1037f (patch) | |
| tree | aae63a5cbe9215665ffcdbbe359a026122a28eb5 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-7bdc6b652f7cf6b163d26f58c04a19b390f1037f.tar nvim-lspconfig-7bdc6b652f7cf6b163d26f58c04a19b390f1037f.tar.gz nvim-lspconfig-7bdc6b652f7cf6b163d26f58c04a19b390f1037f.tar.bz2 nvim-lspconfig-7bdc6b652f7cf6b163d26f58c04a19b390f1037f.tar.lz nvim-lspconfig-7bdc6b652f7cf6b163d26f58c04a19b390f1037f.tar.xz nvim-lspconfig-7bdc6b652f7cf6b163d26f58c04a19b390f1037f.tar.zst nvim-lspconfig-7bdc6b652f7cf6b163d26f58c04a19b390f1037f.zip | |
fix(nixd): remove unnecessary nid.json root pattern (#3120)
Problem: Starting with nixd 2.0.2 the '.nixd.json' file will no longer be needed.
Solution: remove .nidx.json
Co-authored-by: Ruixi-rebirth <ruixirebirth@gmail.com>
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/nixd.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/server_configurations/nixd.lua b/lua/lspconfig/server_configurations/nixd.lua index c914fc53..59107dbb 100644 --- a/lua/lspconfig/server_configurations/nixd.lua +++ b/lua/lspconfig/server_configurations/nixd.lua @@ -6,7 +6,7 @@ return { filetypes = { 'nix' }, single_file_support = true, root_dir = function(fname) - return util.root_pattern(unpack { '.nixd.json', 'flake.nix' })(fname) or util.find_git_ancestor(fname) + return util.root_pattern 'flake.nix'(fname) or util.find_git_ancestor(fname) end, }, docs = { |
