18 lines
361 B
Lua
18 lines
361 B
Lua
local M = {}
|
|
|
|
M.setup_lsp = function(attach, capabilities)
|
|
local lspconfig = require "lspconfig"
|
|
|
|
-- lspserver with default config
|
|
local servers = { "html", "cssls", "gopls"}
|
|
|
|
for _, lsp in ipairs(servers) do
|
|
lspconfig[lsp].setup {
|
|
on_attach = attach,
|
|
capabilities = capabilities,
|
|
}
|
|
end
|
|
end
|
|
|
|
return M
|