mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
nvim: update blade queries
This commit is contained in:
parent
f8cbe1acfe
commit
e2512e7ee1
2 changed files with 14 additions and 7 deletions
|
|
@ -1,6 +1,4 @@
|
|||
(directive) @tag
|
||||
(directive_start) @tag
|
||||
(directive_end) @tag
|
||||
(comment) @comment
|
||||
((parameter) @string (#set! "priority" 110))
|
||||
((php_only) @include (#set! "priority" 110))
|
||||
((bracket_start) @function (#set! "priority" 120))
|
||||
((bracket_end) @function (#set! "priority" 120))
|
||||
((keyword) @keyword (#set! "priority" 110))
|
||||
|
|
|
|||
|
|
@ -3,6 +3,11 @@
|
|||
(#set! injection.combined)
|
||||
(#set! injection.language php))
|
||||
|
||||
; tree-sitter-comment injection
|
||||
; if available
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
; could be bash or zsh
|
||||
; or whatever tree-sitter grammar you have.
|
||||
((text) @injection.content
|
||||
|
|
@ -11,5 +16,9 @@
|
|||
(#set! injection.language bash))
|
||||
|
||||
|
||||
((php_only) @injection.content (#set! injection.language php))
|
||||
((parameter) @injection.content (#set! injection.language php))
|
||||
((php_only) @injection.content
|
||||
(#set! injection.language php_only))
|
||||
|
||||
((parameter) @injection.content
|
||||
(#set! injection.include-children) ; You may need this, depending on your editor e.g Helix
|
||||
(#set! injection.language "php-only"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue