From 7bdc6b652f7cf6b163d26f58c04a19b390f1037f Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 23 Apr 2024 20:56:41 +0800 Subject: 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 --- lua/lspconfig/server_configurations/nixd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') 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 = { -- cgit v1.2.3-70-g09d2