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:
@@ -86,6 +86,16 @@ for _, server in ipairs(servers) do
|
|||||||
root_dir = util.root_pattern(".git"),
|
root_dir = util.root_pattern(".git"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if server == "lua_ls" then
|
||||||
|
opts.settings = {
|
||||||
|
Lua = {
|
||||||
|
diagnostics = {
|
||||||
|
globals = { "vim" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
if server == "emmet_ls" then
|
if server == "emmet_ls" then
|
||||||
opts.filetypes = { "html", "css", "scss", "javascripreact", "typescriptreact", "astro" }
|
opts.filetypes = { "html", "css", "scss", "javascripreact", "typescriptreact", "astro" }
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user