Add vim global to lua lsp
This commit is contained in:
parent
1dfcc4d764
commit
adacb5c6c0
2 changed files with 10 additions and 2 deletions
|
@ -41,7 +41,15 @@ local lsp_configs = {
|
|||
elixirls = {
|
||||
cmd = { vim.fn.expand'~/.local/share/nvim/lsp_servers/elixir/elixir-ls/language_server.sh' },
|
||||
},
|
||||
sumneko_lua = {},
|
||||
sumneko_lua = {
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = {'vim'}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
vimls = {},
|
||||
rust_analyzer = {},
|
||||
denols = {}
|
||||
|
|
|
@ -65,7 +65,7 @@ local options = {
|
|||
foldnestmax = 10,
|
||||
foldlevelstart = 99,
|
||||
autowrite = false,
|
||||
autochdir = true,
|
||||
autochdir = false,
|
||||
autoread = true,
|
||||
modeline = false,
|
||||
showmode = false,
|
||||
|
|
Reference in a new issue