From 43af656a9e1325e76c69e6f5e694214156c278f1 Mon Sep 17 00:00:00 2001 From: Marcelo Date: Sun, 30 Mar 2025 04:26:45 -0300 Subject: Replace nvim-lspconfig and blink completion with NVIM 0.11 native options. --- lsp/go.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lsp/go.lua (limited to 'lsp/go.lua') diff --git a/lsp/go.lua b/lsp/go.lua new file mode 100644 index 0000000..e57d880 --- /dev/null +++ b/lsp/go.lua @@ -0,0 +1,18 @@ +return { + cmd = { "gopls" }, + filetypes = { "go", "gomod", "gowork", "gosum" }, + root_markers = { ".git" }, + settings = { + autoformat = true, + gopls = { + analyses = { + unusedparams = true, + unusedwrite = true, + nilness = true, + }, + gofumpt = true, + semanticTokens = true, + staticcheck = true, + }, + }, +} -- cgit v1.2.3