agregada configuración para lsp, agregase 'go'

This commit is contained in:
serxoz 2022-07-20 12:58:19 +02:00
parent 43856a260e
commit e3399f5ead
2 changed files with 22 additions and 1 deletions

View File

@ -6,7 +6,11 @@ M.plugins = {
override = { override = {
["nvim-treesitter/nvim-treesitter"] = override.treesitter, ["nvim-treesitter/nvim-treesitter"] = override.treesitter,
}, },
options = {
lspconfig = {
setup_lspconf = "custom.plugins.lspconfig"
},
},
user = require "custom.plugins", user = require "custom.plugins",
} }

View File

@ -0,0 +1,17 @@
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