Author: Adam Evyčędo <git@apiote.xyz>
dirty in helix
.config/helix/languages.toml | 14 ++++++++++++++ .config/helix/runtime/queries/dirty/highlights.scm | 15 +++++++++++++++ .config/helix/runtime/queries/dirty/indents.scm | 2 ++
diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml index 2932629dca8c8252e586f860ef80601bbd1cc1b7..e388ed8406bcce5d958f606a8cd546e25f8b8918 100644 --- a/.config/helix/languages.toml +++ b/.config/helix/languages.toml @@ -16,3 +16,17 @@ roots = ["go.work", "go.mod"] auto-format = true comment-token = "//" indent = { tab-width = 2, unit = "\t" } + +[[language]] +name = "dirty" +scope = "source.dirty" +injection-regex = "dirty" +file-types = ["dirty"] +roots = [] +comment-token = "#" +indent = { tab-width = 2, unit = "\t" } +[language.auto-pairs] +'(' = ')' +[[grammar]] +name = "dirty" +source = { path = "/home/adam/Code/current/tree-sitter-dirty" } \ No newline at end of file diff --git a/.config/helix/runtime/queries/dirty/highlights.scm b/.config/helix/runtime/queries/dirty/highlights.scm new file mode 100644 index 0000000000000000000000000000000000000000..a830ede077b76bee7af559bbbe0922483deadcd2 --- /dev/null +++ b/.config/helix/runtime/queries/dirty/highlights.scm @@ -0,0 +1,15 @@ +[ + "(" + ")" +] @punctuation.bracket +(string) @string +(raw_string) @string +[ + (true) + (false) +] @constant.builtin.boolean +(null) @constant.builtin +;(number) @constant.numeric +(escape_sequence) @constant.character.escape +(ERROR) @error +(comment) @comment diff --git a/.config/helix/runtime/queries/dirty/indents.scm b/.config/helix/runtime/queries/dirty/indents.scm new file mode 100644 index 0000000000000000000000000000000000000000..7d670606323b50002cbfb5eb5d07ddfc33aa14ae --- /dev/null +++ b/.config/helix/runtime/queries/dirty/indents.scm @@ -0,0 +1,2 @@ +(array) @indent +")" @outdent \ No newline at end of file