From 9178a31f4fb4acc348b44d01dd87664ef9674e9a Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Wed, 25 Jun 2025 14:38:30 -0400 Subject: [PATCH] AutoYADM commit: 2025-06-25 14:38:30 --- .config/kak/kakrc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 322563f8..06f171b2 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -125,6 +125,7 @@ set-option global indentwidth 4 hook global WinSetOption filetype=kak %{ declare-option str-list extra_kak_keywords addhl decl def compl eval exec rmhl rmhooks face set unset + declare-option str bracket_color 0:rgb:737373 eval %sh{ join() { sep=$2; eval set -- $1; IFS="$sep"; echo "$*"; } if [ -n "$kak_opt_extra_kak_keywords" ]; then @@ -132,9 +133,14 @@ hook global WinSetOption filetype=kak %{ fi } # make brackets gray a-la Ashen - add-highlighter window/bracket regex [\[\]\(\)\{\}]{1} 0:rgb:737373 + add-highlighter shared/sh_highlight group + add-highlighter shared/sh_highlight/brackets regex [\[\]\(\)\{\}] 0:rgb:737373 + add-highlighter shared/kakrc/shell1 region -recurse '\{' '(^|\h)\K%?%sh\{' '\}' ref shared/sh_highlight + # add-highlighter shared/kakrc/sh_delim_close regex '[\}\)\]\>]' %opt{bracket_color} + + # add-highlighter window/bracket regex [\[\]\(\)\{\}]{1} 0:rgb:737373 # special highlighting for escaped goodies in regex - add-highlighter window/regex-escaped regex \\[\[\]\(\)\{\}fnrtv0\\dwshDWSH] 0:rgb:e5e5e5 + # add-highlighter window/regex-escaped regex \\[\[\]\(\)\{\}fnrtv0\\dwshDWSH] 0:rgb:e5e5e5 } # default window settings