mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
treesitter: add injection for vimscript (#383)
This commit is contained in:
parent
8b5223e327
commit
40e0516eca
1 changed files with 8 additions and 0 deletions
|
@ -163,6 +163,14 @@ in {
|
|||
(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