@@ -117,6 +117,12 @@ functionTypeParameters = true
117117parameterNames = true
118118rangeVariableTypes = true
119119
120+[language-server.golangci-lint-lsp]
121+command = "golangci-lint-langserver"
122+
123+[language-server.golangci-lint-lsp.config]
124+command = ["golangci-lint", "run", "--out-format", "json", "--issues-exit-code=1"]
125+
120126
121127[language-server.rust-analyzer]
122128command = "rust-analyzer"
@@ -495,7 +501,7 @@ file-types = ["go"]
495501roots = ["go.work", "go.mod"]
496502auto-format = true
497503comment-token = "//"
498−language-servers = [ "gopls" ]
504+language-servers = [ "gopls", "golangci-lint-lsp" ]
499505# TODO: gopls needs utf-8 offsets?
500506indent = { tab-width = 4, unit = "\t" }
501507