dotfiles.git

commit 0966bfb79c62046048574afc39b2708599ec1534

Author: Adam Evyčędo <git@apiote.xyz>

indent for go

 .config/helix/languages.toml | 10 ++++++++++


diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml
index aae9c68a31847ac691360860d635080f48643b25..2932629dca8c8252e586f860ef80601bbd1cc1b7 100644
--- a/.config/helix/languages.toml
+++ b/.config/helix/languages.toml
@@ -6,3 +6,13 @@ file-types = ["bare"]
 roots = []
 comment-token = "#"
 indent = { tab-width = 2, unit = "\t" }
+
+[[language]]
+name = "go"
+scope = "source.go"
+injection-regex = "go"
+file-types = ["go"]
+roots = ["go.work", "go.mod"]
+auto-format = true
+comment-token = "//"
+indent = { tab-width = 2, unit = "\t" }