diff --git a/helix/languages.toml b/helix/languages.toml index 689b613..2f62eca 100644 --- a/helix/languages.toml +++ b/helix/languages.toml @@ -10,6 +10,17 @@ file-types = ["java", "jav", "pde", "painless"] [language-server.rust-analyzer.config.check] 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 # .helix/languages.toml directory #