mirror of
https://github.com/NvChad/NvChad.git
synced 2024-11-14 18:12:52 +00:00
fix lua lsp cmd error
This commit is contained in:
parent
a38c4543aa
commit
742c57fea5
@ -1,4 +1,4 @@
|
|||||||
function on_attach(client)
|
function on_attach(client)
|
||||||
local function buf_set_keymap(...)
|
local function buf_set_keymap(...)
|
||||||
vim.api.nvim_buf_set_keymap(bufnr, ...)
|
vim.api.nvim_buf_set_keymap(bufnr, ...)
|
||||||
end
|
end
|
||||||
@ -50,7 +50,7 @@ local function setup_servers()
|
|||||||
root_dir = vim.loop.cwd
|
root_dir = vim.loop.cwd
|
||||||
}
|
}
|
||||||
elseif lang == "lua" then
|
elseif lang == "lua" then
|
||||||
lspconf.sumneko_lua.setup {
|
lspconf[lang].setup {
|
||||||
root_dir = function()
|
root_dir = function()
|
||||||
return vim.loop.cwd()
|
return vim.loop.cwd()
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user