diff options
| author | wzy <32936898+Freed-Wu@users.noreply.github.com> | 2024-04-27 09:42:35 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-26 21:42:35 -0400 |
| commit | ab3b3ff01028fef83cfb79b651bf65afb76ee062 (patch) | |
| tree | dd8ac24828cb2e952ddef990c16768dfba0115a7 | |
| parent | feat(glimmer): highlight builtin tags (diff) | |
| download | nvim-treesitter-ab3b3ff01028fef83cfb79b651bf65afb76ee062.tar nvim-treesitter-ab3b3ff01028fef83cfb79b651bf65afb76ee062.tar.gz nvim-treesitter-ab3b3ff01028fef83cfb79b651bf65afb76ee062.tar.bz2 nvim-treesitter-ab3b3ff01028fef83cfb79b651bf65afb76ee062.tar.lz nvim-treesitter-ab3b3ff01028fef83cfb79b651bf65afb76ee062.tar.xz nvim-treesitter-ab3b3ff01028fef83cfb79b651bf65afb76ee062.tar.zst nvim-treesitter-ab3b3ff01028fef83cfb79b651bf65afb76ee062.zip | |
feat(gitconfig): add more injections
| -rw-r--r-- | queries/git_config/injections.scm | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/queries/git_config/injections.scm b/queries/git_config/injections.scm index 7a53af2ee..7bda6979c 100644 --- a/queries/git_config/injections.scm +++ b/queries/git_config/injections.scm @@ -4,7 +4,46 @@ ((variable (name) @_name 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")) (section |
