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:
@@ -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
|
||||
[grammar.templ.source.git]
|
||||
url = "https://github.com/vrischmann/tree-sitter-templ"
|
||||
|
||||
@@ -8,6 +8,7 @@ hook global WinCreate .* %{
|
||||
}
|
||||
|
||||
hook global BufCreate .*\.templ %{ set buffer filetype templ }
|
||||
hook global BufCreate .*\.html.tmpl %{ set buffer filetype gotmpl }
|
||||
|
||||
# LOCAL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user