Skip to content

Commit 8a71fd6

Browse files
committed
go related configs
1 parent dfd5db8 commit 8a71fd6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

init.lua

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,20 @@ require('lazy').setup({
585585
-- But for many setups, the LSP (`tsserver`) will work just fine
586586
-- tsserver = {},
587587
--
588+
gopls = {
589+
capabilities = capabilities,
590+
cmd = { 'gopls' },
591+
filetypes = { 'go', 'gomod', 'gowork', 'gotmpl' },
592+
settings = {
593+
gopls = {
594+
completeUnimported = true,
595+
usePlaceholders = true,
596+
analyses = {
597+
unusedparams = true,
598+
},
599+
},
600+
},
601+
},
588602
zls = {
589603
cmd = { 'zls' },
590604
},

0 commit comments

Comments
 (0)