Stop lua_ls popup on every open

This commit is contained in:
Evie Litherland-Smith 2023-07-18 10:55:38 +01:00
parent 0a23d86476
commit 951458be2e

View file

@ -56,7 +56,14 @@ local config = function()
lsp["pylsp"].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 "fortls" == 1 then lsp["fortls"].setup(lsp_config) end
if vim.fn.executable "yaml-language-server" == 1 then lsp["yamlls"].setup(lsp_config) end