From 7f2b7b3923a5496c87d2ac152b8017f6f3ec5b44 Mon Sep 17 00:00:00 2001 From: rydesun Date: Sun, 9 Mar 2025 21:11:51 +0800 Subject: [PATCH] Fix delta config: auto light theme --- .config/git/config | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/.config/git/config b/.config/git/config index 8f3b019..fce4d45 100644 --- a/.config/git/config +++ b/.config/git/config @@ -41,36 +41,20 @@ ; {{{ delta配置(需要安装delta) ; https://github.com/dandavison/delta [core] - ; https://github.com/dandavison/delta/issues/447 - pager = delta --features "$(case \ - "$(gsettings get org.gnome.desktop.interface color-scheme)" \ - in *light*) echo light-theme;; *) echo dark-theme;; esac)" + pager = delta [interactive] diffFilter = delta --color-only [delta] - ; 去掉文件名的下划线 - file-decoration-style = none - -[delta "dark-theme"] - ; commit信息增加下划线 - commit-decoration-style = bold ul + ; nN按键导航 + navigate = true ; 文件名以块状显示 file-style = bold black white - - ; diff的配色 - minus-style = syntax "#39180b" - minus-emph-style = normal "#734347" - plus-style = syntax "#1a2810" - plus-emph-style = normal "#406040" - -[delta "light-theme"] - commit-decoration-style = bold ul orange - file-style = bold white black - - ; diff的配色 - syntax-theme = "GitHub" + ; 去掉文件名的下划线 + file-decoration-style = none + ; commit信息增加下划线 + commit-decoration-style = bold ul ; }}}