aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
diff options
context:
space:
mode:
authorMichael Davis2021-12-23 15:53:01 +0000
committerBlaž Hrastnik2021-12-25 15:12:49 +0000
commit28c9afdd0e83da37c782fc82b859d8451df1b877 (patch)
tree4d7c695d6a1c5b8849246d06a6978c60c4170169 /runtime/queries
parentc1f4c0e67acc65a263440fce98514c9e6de1940d (diff)
add commented-out diff and rebase injection queries
Diffstat (limited to 'runtime/queries')
-rw-r--r--runtime/queries/gitcommit/injections.scm15
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/queries/gitcommit/injections.scm b/runtime/queries/gitcommit/injections.scm
new file mode 100644
index 00000000..2837a586
--- /dev/null
+++ b/runtime/queries/gitcommit/injections.scm
@@ -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"))