From 28c9afdd0e83da37c782fc82b859d8451df1b877 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Thu, 23 Dec 2021 09:53:01 -0600 Subject: add commented-out diff and rebase injection queries --- runtime/queries/gitcommit/injections.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 runtime/queries/gitcommit/injections.scm (limited to 'runtime/queries') 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")) -- cgit v1.2.3-70-g09d2