mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-13 10:44:34 +02:00
plugins/treesitter: switch to mkNeovimPlugin
This commit is contained in:
parent
c0ea106b4b
commit
435ef287ab
3 changed files with 386 additions and 193 deletions
17
plugins/languages/treesitter/injections.scm
Normal file
17
plugins/languages/treesitter/injections.scm
Normal file
|
@ -0,0 +1,17 @@
|
|||
;; extends
|
||||
|
||||
(binding
|
||||
attrpath: (attrpath (identifier) @_path)
|
||||
expression: [
|
||||
(string_expression (string_fragment) @lua)
|
||||
(indented_string_expression (string_fragment) @lua)
|
||||
]
|
||||
(#match? @_path "^extraConfigLua(Pre|Post)?$"))
|
||||
|
||||
(binding
|
||||
attrpath: (attrpath (identifier) @_path)
|
||||
expression: [
|
||||
(string_expression (string_fragment) @vim)
|
||||
(indented_string_expression (string_fragment) @vim)
|
||||
]
|
||||
(#match? @_path "^extraConfigVim(Pre|Post)?$"))
|
Loading…
Add table
Add a link
Reference in a new issue