From edd8240d7f4404cb3aacedf3a93b23386e7cd3d1 Mon Sep 17 00:00:00 2001 From: ray-x Date: Thu, 21 Apr 2022 00:43:35 +1000 Subject: [PATCH] go.sum file type --- ftdetect/sum.vim | 1 + lua/go/gopls.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 ftdetect/sum.vim diff --git a/ftdetect/sum.vim b/ftdetect/sum.vim new file mode 100644 index 0000000..3ee9307 --- /dev/null +++ b/ftdetect/sum.vim @@ -0,0 +1 @@ +autocmd BufRead,BufNewFile *.sum set filetype=gosum diff --git a/lua/go/gopls.lua b/lua/go/gopls.lua index 950808d..bc58837 100644 --- a/lua/go/gopls.lua +++ b/lua/go/gopls.lua @@ -170,7 +170,7 @@ local setups = { }, }, }, - filetypes = { "go", "gomod", "gohtmltmpl", "gotexttmpl" }, + filetypes = { "go", "gomod", "gosum", "gotmpl", "gohtmltmpl", "gotexttmpl" }, message_level = vim.lsp.protocol.MessageType.Error, cmd = { "gopls", -- share the gopls instance if there is one already