clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

add go to lsp

sspaeti f99bdc4b 46fba2bd

+15
+14
nvim/.config/nvim/lua/sspaeti/plugins/lsp/lspconfig.lua
··· 225 225 on_attach = on_attach, 226 226 root_dir = vim.fs.root(0, {'gradlew', '.git', 'mvnw', 'pom.xml', 'build.gradle', 'build.sbt', 'build.sc'}), 227 227 }}, 228 + { "gopls", { 229 + capabilities = capabilities, 230 + on_attach = on_attach, 231 + settings = { 232 + gopls = { 233 + analyses = { 234 + unusedparams = true, 235 + shadow = true, 236 + }, 237 + staticcheck = true, 238 + gofumpt = true, -- stricter formatting 239 + }, 240 + }, 241 + }}, 228 242 } 229 243 230 244 -- Configure all servers using the new vim.lsp.config API
+1
nvim/.config/nvim/lua/sspaeti/plugins/lsp/mason.lua
··· 41 41 "lemminx", 42 42 "bashls", 43 43 "jdtls", 44 + "gopls", 44 45 }, 45 46 -- auto-install configured servers (with lspconfig) 46 47 automatic_installation = true, -- not the same as ensure_installed