add gopls to nvim

This commit is contained in:
Anish Lakhwara 2024-07-14 20:21:20 -07:00
parent 20a8684f60
commit ca6a9fdafb

View file

@ -635,7 +635,7 @@ in
} }
} }
local servers = { 'clojure_lsp', 'terraform_lsp', 'zls', 'pyright', 'rust_analyzer', 'tsserver', 'lua_ls', 'nil_ls'} local servers = { 'clojure_lsp', 'terraform_lsp', 'zls', 'pyright', 'rust_analyzer', 'tsserver', 'lua_ls', 'nil_ls', 'gopls'}
for _, lsp in ipairs(servers) do for _, lsp in ipairs(servers) do
lspconfig[lsp].setup { lspconfig[lsp].setup {
on_attach = function(client, bufnr) on_attach = function(client, bufnr)
@ -864,6 +864,7 @@ in
rust-analyzer rust-analyzer
clj-kondo clj-kondo
zls zls
gopls
gcc gcc
nodePackages_latest.pyright nodePackages_latest.pyright
shellcheck shellcheck