on master help sign in
add commented-out diff and rebase injection queries
commit28c9afdd0e83da37c782fc82b859d8451df1b877 authorMichael Davis <mcarsondavis@gmail.com> dateThu 23 Dec 2021, 09:53 (5 years ago) parentc1f4c0e
1 file changed+15
runtime/queries/gitcommit/injections.scm+15
runtime/queries/gitcommit/injections.scmnew file+15
@@ -0,0 +1,15 @@
1+; once a diff grammar is available, we can inject diff highlighting into the
2+; trailer after scissors (git commit --verbose)
3+; see https://github.com/helix-editor/helix/pull/1338#issuecomment-1000013539
4+;
5+; ((comment (scissors))
6+; (message) @injection.content
7+; (#set! injection.language "diff"))
8+
9+; ---
10+
11+; once a rebase grammar is available, we can inject rebase highlighting into
12+; interactive rebase summary sections like so:
13+;
14+; ((rebase_command) @injection.content
15+; (#set! injection.language "git-rebase"))