diff options
Diffstat (limited to 'lua/lspconfig/configs/nushell.lua')
| -rw-r--r-- | lua/lspconfig/configs/nushell.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/configs/nushell.lua b/lua/lspconfig/configs/nushell.lua index a51f452e..9b51a021 100644 --- a/lua/lspconfig/configs/nushell.lua +++ b/lua/lspconfig/configs/nushell.lua @@ -3,7 +3,7 @@ return { cmd = { 'nu', '--lsp' }, filetypes = { 'nu' }, root_dir = function(fname) - return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1]) + return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1] or fname) end, single_file_support = true, }, |
