diff options
author | Angus Dippenaar | 2023-10-29 16:53:15 +0000 |
---|---|---|
committer | GitHub | 2023-10-29 16:53:15 +0000 |
commit | 44e03fa41446f46c7be60a62acf6aa4131a62a4a (patch) | |
tree | 6dde46ead918f066bd3a9e7a1800f7ac6cbe2c7a /languages.toml | |
parent | ef0c31db02cc1ade81b6d5097f1d05d7b3fa85e5 (diff) |
add golangci-lint-langserver (#8656)
* languages add golangci-lint-langserver
* update docs
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" } |