From 6deaed01de7f1763eeec5bd94d9ae478538ff3f7 Mon Sep 17 00:00:00 2001 From: Matt Schick Date: Thu, 15 Dec 2016 06:09:27 -0800 Subject: [PATCH] Add face 'GitDiffFlags' for git diff flag_lines No defaults have been altered, just added the ability to do user override. The existing facespec had a background of 'black', which ends up looking a little harsh for people who do black text on a white background. --- rc/extra/git-tools.kak | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rc/extra/git-tools.kak b/rc/extra/git-tools.kak index 3deeb99c..cbe98d72 100644 --- a/rc/extra/git-tools.kak +++ b/rc/extra/git-tools.kak @@ -20,6 +20,7 @@ decl line-flags git_blame_flags decl line-flags git_diff_flags face GitBlame default,magenta +face GitDiffFlags default,black def -params 1.. \ -docstring %sh{printf '%%{git []: git wrapping helper @@ -145,7 +146,7 @@ Available commands:\n-add\n-rm\n-blame\n-commit\n-checkout\n-diff\n-hide-blame\n }" ;; show-diff) - echo 'try %{ addhl flag_lines default,black git_diff_flags }' + echo 'try %{ addhl flag_lines GitDiffFlags git_diff_flags }' update_diff ;; update-diff) update_diff ;;