Add vim as global in lua lsp

This commit is contained in:
2021-11-16 16:21:31 +03:00
parent 518e706c3f
commit 92124c0ac3

View File

@@ -84,5 +84,17 @@ lsp_installer.on_server_ready(function(server)
bind = true,
})
if server.name == "sumneko_lua" then
table.insert(opts, {
settings = {
Lua = {
diagnostics = {
globals = { "vim" }
}
}
}
})
end
server:setup(opts)
end)