go related configs
This commit is contained in:
parent
dfd5db86b6
commit
8a71fd6770
14
init.lua
14
init.lua
|
@ -585,6 +585,20 @@ require('lazy').setup({
|
||||||
-- But for many setups, the LSP (`tsserver`) will work just fine
|
-- But for many setups, the LSP (`tsserver`) will work just fine
|
||||||
-- tsserver = {},
|
-- tsserver = {},
|
||||||
--
|
--
|
||||||
|
gopls = {
|
||||||
|
capabilities = capabilities,
|
||||||
|
cmd = { 'gopls' },
|
||||||
|
filetypes = { 'go', 'gomod', 'gowork', 'gotmpl' },
|
||||||
|
settings = {
|
||||||
|
gopls = {
|
||||||
|
completeUnimported = true,
|
||||||
|
usePlaceholders = true,
|
||||||
|
analyses = {
|
||||||
|
unusedparams = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
zls = {
|
zls = {
|
||||||
cmd = { 'zls' },
|
cmd = { 'zls' },
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue