Skip to content

Commit a331586

Browse files
authored
don't skip VIMRUNTIME in lua lsp if ~/.config/nvim/.luarc.json exists
1 parent 00dae9f commit a331586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/configs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5998,7 +5998,7 @@ require'lspconfig'.lua_ls.setup {
59985998
on_init = function(client)
59995999
if client.workspace_folders then
60006000
local path = client.workspace_folders[1].name
6001-
if vim.loop.fs_stat(path..'/.luarc.json') or vim.loop.fs_stat(path..'/.luarc.jsonc') then
6001+
if path ~= vim.fn.stdpath('config') and (vim.loop.fs_stat(path..'/.luarc.json') or vim.loop.fs_stat(path..'/.luarc.jsonc')) then
60026002
return
60036003
end
60046004
end

0 commit comments

Comments
 (0)