kakoune: add kak-tree-sitter config for gotmpl

modify file
~/.local/share/kak-tree-sitter/queries/gotmpl/7275b7f85014aad7e15d4987ec4f2249572eecfb/injections.scm
adding:
((text) @injection.content
 (#set! injection.language "html")
 (#set! injection.combined))
This commit is contained in:
2026-07-17 00:48:15 +02:00
parent 994e3b4662
commit f7a7f031ff
2 changed files with 10 additions and 0 deletions

View File

@@ -1,3 +1,12 @@
# gotmpl
[grammar.gotmpl.source.git]
url = "https://github.com/ngalaiko/tree-sitter-go-template"
pin = "aa71f63de226c5592dfbfc1f29949522d7c95fac"
[language.gotmpl.queries.source.git]
url = "https://github.com/helix-editor/helix"
pin = "7275b7f85014aad7e15d4987ec4f2249572eecfb"
# templ # templ
[grammar.templ.source.git] [grammar.templ.source.git]
url = "https://github.com/vrischmann/tree-sitter-templ" url = "https://github.com/vrischmann/tree-sitter-templ"

View File

@@ -8,6 +8,7 @@ hook global WinCreate .* %{
} }
hook global BufCreate .*\.templ %{ set buffer filetype templ } hook global BufCreate .*\.templ %{ set buffer filetype templ }
hook global BufCreate .*\.html.tmpl %{ set buffer filetype gotmpl }
# LOCAL # LOCAL