@@ -117,6 +117,12 @@ functionTypeParameters = true
117parameterNames = true
117parameterNames = true
118rangeVariableTypes = true
118rangeVariableTypes = true
120+[language-server.golangci-lint-lsp]
121+command = "golangci-lint-langserver"
123+[language-server.golangci-lint-lsp.config]
124+command = ["golangci-lint", "run", "--out-format", "json", "--issues-exit-code=1"]
121[language-server.rust-analyzer]
127[language-server.rust-analyzer]
122command = "rust-analyzer"
128command = "rust-analyzer"
@@ -495,7 +501,7 @@ file-types = ["go"]
495roots = ["go.work", "go.mod"]
501roots = ["go.work", "go.mod"]
496auto-format = true
502auto-format = true
497comment-token = "//"
503comment-token = "//"
498−language-servers = [ "gopls" ]
504+language-servers = [ "gopls", "golangci-lint-lsp" ]
499# TODO: gopls needs utf-8 offsets?
505# TODO: gopls needs utf-8 offsets?
500indent = { tab-width = 4, unit = "\t" }
506indent = { tab-width = 4, unit = "\t" }