mirror of
https://github.com/helix-editor/helix
synced 2024-11-10 10:34:45 +01:00
add commented-out diff and rebase injection queries
This commit is contained in:
parent
c1f4c0e67a
commit
28c9afdd0e
15
runtime/queries/gitcommit/injections.scm
Normal file
15
runtime/queries/gitcommit/injections.scm
Normal file
@ -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"))
|
Loading…
Reference in New Issue
Block a user