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: [ (nvim-treesitter.withPlugins (parsers: [
parsers.c parsers.c
parsers.cpp parsers.cpp
parsers.go
parsers.json parsers.json
parsers.latex parsers.latex
parsers.lua parsers.lua
@ -30,6 +31,7 @@
colorizer colorizer
fugitive fugitive
fzf-lua fzf-lua
gopls
gruvbox gruvbox
nvim-cmp nvim-cmp
nvim-lspconfig 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() local capabilities = require('cmp_nvim_lsp').default_capabilities()
for _, lsp in pairs(servers) do for _, lsp in pairs(servers) do
require('lspconfig')[lsp].setup { require('lspconfig')[lsp].setup {