2022-07-20 12:58:19 +02:00
|
|
|
local M = {}
|
|
|
|
|
|
|
|
M.setup_lsp = function(attach, capabilities)
|
|
|
|
local lspconfig = require "lspconfig"
|
|
|
|
|
|
|
|
-- lspserver with default config
|
2022-07-20 13:18:56 +02:00
|
|
|
local servers = { "html", "cssls", "gopls", "jedi_language_server"}
|
2022-07-20 12:58:19 +02:00
|
|
|
|
|
|
|
for _, lsp in ipairs(servers) do
|
|
|
|
lspconfig[lsp].setup {
|
|
|
|
on_attach = attach,
|
|
|
|
capabilities = capabilities,
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
return M
|