1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim: update

This commit is contained in:
Henrik Hautakoski 2024-12-04 15:50:42 +01:00
parent 6e7ca7ed79
commit ef640d0f27
6 changed files with 28 additions and 42 deletions

View file

@ -2,3 +2,5 @@
(directive_start) @tag
(directive_end) @tag
(comment) @comment
(bracket_start) @keyword
(bracket_end) @keyword

View file

@ -1,24 +1,9 @@
((text) @injection.content
(#not-has-ancestor? @injection.content "envoy")
(#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
(#has-ancestor? @injection.content "envoy")
(#set! injection.combined)
(#set! injection.language bash))
((php_only) @injection.content
(#set! injection.language php_only))
((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"))
(#set! injection.language php_only))