feat(nvim): add go language server

This commit is contained in:
Price Hiller 2023-09-11 17:28:40 -05:00
parent dd9cc5ae5f
commit 900fc9bfbe
No known key found for this signature in database

View File

@ -440,6 +440,8 @@ return {
})
lspconfig.texlab.setup({
capabilities = lsp_capabilities,
on_attach = on_attach,
settings = {
texlab = {
build = {
@ -482,6 +484,25 @@ return {
},
})
lspconfig.gopls.setup({
capabilities = lsp_capabilities,
on_attach = on_attach,
settings = {
gopls = {
hints = {
assignVariableTypes = true,
compositeLiteralFields = true,
compositeLiteralTypes = true,
constantValues = true,
functionTypeParameters = true,
parameterNames = true,
rangeVariableTypes = true,
}
}
}
}
)
-- NOTE: GENERIC LSP SERVERS
for _, server in ipairs({
"clangd",