mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 15:30:01 -04:00
feat(gitconfig): add more injections
This commit is contained in:
parent
01963961b5
commit
ab3b3ff010
1 changed files with 40 additions and 1 deletions
|
|
@ -4,7 +4,46 @@
|
||||||
((variable
|
((variable
|
||||||
(name) @_name
|
(name) @_name
|
||||||
value: (string) @injection.content)
|
value: (string) @injection.content)
|
||||||
(#any-of? @_name "cmd" "command" "textconv")
|
(#any-of? @_name "cmd" "command" "textconv" "sendmailCmd")
|
||||||
|
(#set! injection.language "bash"))
|
||||||
|
|
||||||
|
(section
|
||||||
|
(variable
|
||||||
|
(name) @_name
|
||||||
|
value: (string) @injection.content)
|
||||||
|
(#eq? @_name "tool")
|
||||||
|
(#set! injection.language "bash"))
|
||||||
|
|
||||||
|
(section
|
||||||
|
(section_header
|
||||||
|
(section_name) @_pager)
|
||||||
|
(variable
|
||||||
|
value: (string) @injection.content)
|
||||||
|
(#eq? @_pager "pager")
|
||||||
|
(#set! injection.language "bash"))
|
||||||
|
|
||||||
|
(section
|
||||||
|
(section_header
|
||||||
|
(section_name) @_interactive)
|
||||||
|
(variable
|
||||||
|
(name) @_name
|
||||||
|
value: (string) @injection.content)
|
||||||
|
(#eq? @_interactive "interactive")
|
||||||
|
(#eq? @_name "diffFilter")
|
||||||
|
(#set! injection.language "bash"))
|
||||||
|
|
||||||
|
; https://github.com/git-lfs/git-lfs
|
||||||
|
; git lfs install
|
||||||
|
(section
|
||||||
|
(section_header
|
||||||
|
(section_name) @_filter
|
||||||
|
(subsection_name) @_lfs)
|
||||||
|
(variable
|
||||||
|
(name) @_name
|
||||||
|
value: (string) @injection.content)
|
||||||
|
(#eq? @_filter "filter")
|
||||||
|
(#eq? @_lfs "lfs")
|
||||||
|
(#any-of? @_name "smudge" "process" "clean")
|
||||||
(#set! injection.language "bash"))
|
(#set! injection.language "bash"))
|
||||||
|
|
||||||
(section
|
(section
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue