go: add gopls

This commit is contained in:
Asmir A 2023-10-26 14:52:30 +02:00
parent 8555092095
commit a81f0a2041
2 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,7 @@
(nvim-treesitter.withPlugins (parsers: [
parsers.c
parsers.cpp
parsers.go
parsers.json
parsers.latex
parsers.lua
@ -30,6 +31,7 @@
colorizer
fugitive
fzf-lua
gopls
gruvbox
nvim-cmp
nvim-lspconfig

View File

@ -184,7 +184,7 @@ cmp.setup({
}
})
local servers = { 'pyright', 'rust_analyzer', 'ccls', 'nixd', 'texlab', 'zls' }
local servers = { 'pyright', 'rust_analyzer', 'ccls', 'nixd', 'texlab', 'zls', 'gopls' }
local capabilities = require('cmp_nvim_lsp').default_capabilities()
for _, lsp in pairs(servers) do
require('lspconfig')[lsp].setup {