Stop lua_ls popup on every open
This commit is contained in:
parent
0a23d86476
commit
951458be2e
|
@ -56,7 +56,14 @@ local config = function()
|
||||||
lsp["pylsp"].setup(lsp_config)
|
lsp["pylsp"].setup(lsp_config)
|
||||||
end
|
end
|
||||||
if vim.fn.executable "ruff-lsp" == 1 then lsp["ruff_lsp"].setup(lsp_config) end
|
if vim.fn.executable "ruff-lsp" == 1 then lsp["ruff_lsp"].setup(lsp_config) end
|
||||||
if vim.fn.executable "lua-language-server" == 1 then lsp["lua_ls"].setup(lsp_config) end
|
if vim.fn.executable "lua-language-server" == 1 then
|
||||||
|
lsp["lua_ls"].setup {
|
||||||
|
on_attach = lsp_config.on_attach,
|
||||||
|
flags = lsp_config.flags,
|
||||||
|
capabilities = lsp_config.capabilities,
|
||||||
|
settings = { Lua = { workspace = { checkThirdParty = false } } },
|
||||||
|
}
|
||||||
|
end
|
||||||
if vim.fn.executable "nil" == 1 then lsp["nil_ls"].setup(lsp_config) end
|
if vim.fn.executable "nil" == 1 then lsp["nil_ls"].setup(lsp_config) end
|
||||||
if vim.fn.executable "fortls" == 1 then lsp["fortls"].setup(lsp_config) end
|
if vim.fn.executable "fortls" == 1 then lsp["fortls"].setup(lsp_config) end
|
||||||
if vim.fn.executable "yaml-language-server" == 1 then lsp["yamlls"].setup(lsp_config) end
|
if vim.fn.executable "yaml-language-server" == 1 then lsp["yamlls"].setup(lsp_config) end
|
||||||
|
|
Loading…
Reference in a new issue