diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml index 8f45c2b7..644a7791 100644 --- a/.config/helix/languages.toml +++ b/.config/helix/languages.toml @@ -226,3 +226,21 @@ name = "kdl" auto-format = true # Configure kdlfmt to use stdin formatter = { command = "kdlfmt", args = ["format", "-"] } + +[language-server.typos-lsp] +command = "typos-lsp" + +[[language]] +name = "go" +scope = "source.go" +injection-regex = "go" +file-types = ["go"] +roots = ["go.work", "go.mod"] +auto-format = true +comment-token = "//" +block-comment-tokens = { start = "/*", end = "*/" } +language-servers = [ "gopls", "golangci-lint-lsp", "typos-lsp" ] +# TODO: gopls needs utf-8 offsets? +indent = { tab-width = 4, unit = "\t" } + +