kakoune: add kak-tree-sitter config for templ
This commit is contained in:
12
kakoune/.config/kak-tree-sitter/config.toml
Normal file
12
kakoune/.config/kak-tree-sitter/config.toml
Normal file
@@ -0,0 +1,12 @@
|
||||
# templ
|
||||
[grammar.templ.source.git]
|
||||
url = "https://github.com/vrischmann/tree-sitter-templ"
|
||||
pin = "04bae7c82de2fcfec94254fef50f5f1c5924f5f5"
|
||||
|
||||
[grammar.templ]
|
||||
compile_args = ["-c", "-fpic", "../scanner.c", "../parser.c", "-I", ".."]
|
||||
link_args = ["-shared", "-fpic", "scanner.o", "parser.o", "-o", "templ.so"]
|
||||
|
||||
[language.templ.queries.source.git]
|
||||
url = "https://github.com/helix-editor/helix"
|
||||
pin = "7275b7f85014aad7e15d4987ec4f2249572eecfb"
|
||||
@@ -7,6 +7,8 @@ hook global WinCreate .* %{
|
||||
add-highlighter window/number-lines number-lines -relative -hlcursor
|
||||
}
|
||||
|
||||
hook global BufCreate .*\.templ %{ set buffer filetype templ }
|
||||
|
||||
# LOCAL
|
||||
|
||||
nop %sh{
|
||||
|
||||
Reference in New Issue
Block a user