Skip to content

Commit

Permalink
add commented-out diff and rebase injection queries
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis authored and archseer committed Dec 25, 2021
1 parent c1f4c0e commit 28c9afd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions runtime/queries/gitcommit/injections.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
; once a diff grammar is available, we can inject diff highlighting into the
; trailer after scissors (git commit --verbose)
; see https://github.com/helix-editor/helix/pull/1338#issuecomment-1000013539
;
; ((comment (scissors))
; (message) @injection.content
; (#set! injection.language "diff"))

; ---

; once a rebase grammar is available, we can inject rebase highlighting into
; interactive rebase summary sections like so:
;
; ((rebase_command) @injection.content
; (#set! injection.language "git-rebase"))

0 comments on commit 28c9afd

Please sign in to comment.