Add golangci-lint-langserver for go

This commit is contained in:
2025-09-30 19:23:42 -05:00
parent 4c71f795aa
commit 6deba070cb

View File

@@ -10,6 +10,17 @@ file-types = ["java", "jav", "pde", "painless"]
[language-server.rust-analyzer.config.check] [language-server.rust-analyzer.config.check]
command = "clippy" command = "clippy"
[[language]]
name = "go"
auto-format = true
language-servers = [ "gopls", "golangci-lint-lsp" ]
[language-server.golangci-lint-lsp]
command = "golangci-lint-langserver"
[language-server.golangci-lint-lsp.config]
command = ["golangci-lint", "run", "--output.json.path", "stdout", "--show-stats=false", "--issues-exit-code=1"]
# It is recommended to place the necessary configurations below inside a project's # It is recommended to place the necessary configurations below inside a project's
# .helix/languages.toml directory # .helix/languages.toml directory
# #