From 8a71fd67702d297f274ecfb72222a2650423ee3f Mon Sep 17 00:00:00 2001 From: DaceKonn Date: Fri, 6 Dec 2024 19:57:30 +0100 Subject: [PATCH] go related configs --- init.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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' }, },