diff options
Diffstat (limited to 'languages.toml')
-rw-r--r-- | languages.toml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml index 8b9b01e9..24e20654 100644 --- a/languages.toml +++ b/languages.toml @@ -117,6 +117,12 @@ functionTypeParameters = true parameterNames = true rangeVariableTypes = true +[language-server.golangci-lint-lsp] +command = "golangci-lint-langserver" + +[language-server.golangci-lint-lsp.config] +command = ["golangci-lint", "run", "--out-format", "json", "--issues-exit-code=1"] + [language-server.rust-analyzer] command = "rust-analyzer" @@ -495,7 +501,7 @@ file-types = ["go"] roots = ["go.work", "go.mod"] auto-format = true comment-token = "//" -language-servers = [ "gopls" ] +language-servers = [ "gopls", "golangci-lint-lsp" ] # TODO: gopls needs utf-8 offsets? indent = { tab-width = 4, unit = "\t" } |