2a8e96e986c63f54146499aa53345aee329b9471

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Update gopls lsp settings

Diff

 1diff --git a/dot_config/nvim/lua/plugins/lsp.lua b/dot_config/nvim/lua/plugins/lsp.lua
 2index 7c00e6c69b8f39e15e481fdaeaae96061ee9cfb4..0f43ff38b46156231608a1dce69a29035a62a402 100644
 3--- a/dot_config/nvim/lua/plugins/lsp.lua
 4+++ b/dot_config/nvim/lua/plugins/lsp.lua
 5@@ -31,26 +31,15 @@ return {
 6 				markdown = { prettier },
 7 			}
 8 			local servers = {
 9-				golangci_lint_ls = {
10-					root_dir = require("lspconfig.util").root_pattern(
11-						"go.mod",
12-						"go.work",
13-						".golangci.yml",
14-						".golangci.yaml",
15-						".golangci.toml",
16-						".golangci.json",
17-						".git"
18-					),
19-					init_options = {
20-						command = { "golangci-lint", "run", "--output.json.path=stdout", "--show-stats=false" },
21-					},
22-				},
23+				golangci_lint_ls = {},
24 				gopls = {
25 					settings = {
26 						gopls = {
27-							gofumpt = true,
28+							gofumpt = false,
29 							staticcheck = true,
30-							-- buildFlags = { "-tags=duckdb_arrow" },
31+							analyses = {
32+								ST1000 = false,
33+							},
34 							hints = {
35 								assignVariableTypes = false,
36 								compositeLiteralFields = false,
37@@ -194,7 +183,7 @@ return {
38 					javascript = { "efm" },
39 					typescript = { "efm" },
40 					svelte = { "prettierd" },
41-					go = { "golangci_lint_ls", "golangci-lint" },
42+					go = { "golines", "golangci-lint" },
43 					html = { "htmlbeautifier", "htmlhint" },
44 					tmpl = { "htmlbeautifier", "htmlhint" },
45 				},