neovim: add vim as global for lua_ls

this way it will shut up about it being undefined or what ever
This commit is contained in:
2024-03-09 00:37:07 +03:00
parent ebb3a9f94d
commit 98c6a294d4

View File

@@ -86,6 +86,16 @@ for _, server in ipairs(servers) do
root_dir = util.root_pattern(".git"),
}
if server == "lua_ls" then
opts.settings = {
Lua = {
diagnostics = {
globals = { "vim" },
},
},
}
end
if server == "emmet_ls" then
opts.filetypes = { "html", "css", "scss", "javascripreact", "typescriptreact", "astro" }
end