diff --git a/init.lua b/init.lua index b78e90c1..f7244805 100644 --- a/init.lua +++ b/init.lua @@ -585,6 +585,20 @@ require('lazy').setup({ -- But for many setups, the LSP (`tsserver`) will work just fine -- tsserver = {}, -- + gopls = { + capabilities = capabilities, + cmd = { 'gopls' }, + filetypes = { 'go', 'gomod', 'gowork', 'gotmpl' }, + settings = { + gopls = { + completeUnimported = true, + usePlaceholders = true, + analyses = { + unusedparams = true, + }, + }, + }, + }, zls = { cmd = { 'zls' }, },