agregada configuración para lsp, agregase 'go'
This commit is contained in:
parent
43856a260e
commit
e3399f5ead
@ -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",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
17
nvim/custom/plugins/lspconfig.lua
Normal file
17
nvim/custom/plugins/lspconfig.lua
Normal 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
|
Loading…
Reference in New Issue
Block a user