Add vim global to lua lsp

This commit is contained in:
Daniel Flanagan 2022-03-09 12:54:46 -06:00
parent 1dfcc4d764
commit adacb5c6c0
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
2 changed files with 10 additions and 2 deletions

View file

@ -41,7 +41,15 @@ local lsp_configs = {
elixirls = { elixirls = {
cmd = { vim.fn.expand'~/.local/share/nvim/lsp_servers/elixir/elixir-ls/language_server.sh' }, 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 = {}, vimls = {},
rust_analyzer = {}, rust_analyzer = {},
denols = {} denols = {}

View file

@ -65,7 +65,7 @@ local options = {
foldnestmax = 10, foldnestmax = 10,
foldlevelstart = 99, foldlevelstart = 99,
autowrite = false, autowrite = false,
autochdir = true, autochdir = false,
autoread = true, autoread = true,
modeline = false, modeline = false,
showmode = false, showmode = false,