From a81f0a204127f22164fdc63da32ebfd46f97e513 Mon Sep 17 00:00:00 2001 From: Asmir A Date: Thu, 26 Oct 2023 14:52:30 +0200 Subject: [PATCH] go: add gopls --- nvim-lsp.nix | 2 ++ vimrc.lua | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nvim-lsp.nix b/nvim-lsp.nix index 930d281..a9767b4 100644 --- a/nvim-lsp.nix +++ b/nvim-lsp.nix @@ -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 diff --git a/vimrc.lua b/vimrc.lua index cf973c4..d0c61e6 100644 --- a/vimrc.lua +++ b/vimrc.lua @@ -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 {