Add vim as global in lua lsp
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user