mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/treesitter: Adapt nixvim queries to 0.10
This commit is contained in:
parent
0f76a8cdfc
commit
29118021b3
1 changed files with 18 additions and 8 deletions
|
@ -1,17 +1,27 @@
|
||||||
;; extends
|
;; extends
|
||||||
|
|
||||||
(binding
|
(binding
|
||||||
attrpath: (attrpath (identifier) @_path)
|
attrpath: (attrpath
|
||||||
|
(identifier) @_path)
|
||||||
expression: [
|
expression: [
|
||||||
(string_expression (string_fragment) @lua)
|
(string_expression
|
||||||
(indented_string_expression (string_fragment) @lua)
|
((string_fragment) @injection.content
|
||||||
|
(#set! injection.language "lua")))
|
||||||
|
(indented_string_expression
|
||||||
|
((string_fragment) @injection.content
|
||||||
|
(#set! injection.language "lua")))
|
||||||
]
|
]
|
||||||
(#match? @_path "^extraConfigLua(Pre|Post)?$"))
|
(#match? @_path "(^extraConfigLua(Pre|Post)?)$"))
|
||||||
|
|
||||||
(binding
|
(binding
|
||||||
attrpath: (attrpath (identifier) @_path)
|
attrpath: (attrpath
|
||||||
|
(identifier) @_path)
|
||||||
expression: [
|
expression: [
|
||||||
(string_expression (string_fragment) @vim)
|
(string_expression
|
||||||
(indented_string_expression (string_fragment) @vim)
|
((string_fragment) @injection.content
|
||||||
|
(#set! injection.language "vim")))
|
||||||
|
(indented_string_expression
|
||||||
|
((string_fragment) @injection.content
|
||||||
|
(#set! injection.language "vim")))
|
||||||
]
|
]
|
||||||
(#match? @_path "^extraConfigVim(Pre|Post)?$"))
|
(#match? @_path "(^extraConfigVim(Pre|Post)?)$"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue