From 02bb20aba5c9ef8d568fd8a154c2b94e481a3c77 Mon Sep 17 00:00:00 2001 From: qugalet Date: Fri, 6 Dec 2024 16:12:03 +0200 Subject: [PATCH] =?UTF-8?q?changes=20from=20claymore=20on=20=D0=BF'=D1=8F?= =?UTF-8?q?=D1=82=D0=BD=D0=B8=D1=86=D1=8F,=206=20=D0=B3=D1=80=D1=83=D0=B4?= =?UTF-8?q?=D0=BD=D1=8F=202024=2016:12:03=20+0200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- after/plugin/lsp.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index c13f4c2..fb25dbf 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -80,6 +80,9 @@ lspconfig.html.setup { } lspconfig.gopls.setup({ + cmd = { "gopls", "-remote=auto" }, + -- attach to new filetypes too. + filetypes = { "go", "gomod", "gowork", "gotmpl", "gohtmltmpl", "gotexttmpl" }, settings = { gopls = { hints = { @@ -91,6 +94,7 @@ lspconfig.gopls.setup({ compositeLiteralTypes = true, functionTypeParameters = true, }, + ["build.templateExtensions"] = { "gohtml", "html", "gotmpl", "tmpl" }, } } })