From 344f4df05944d2088efdd6d9903ced0f8254159b Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Wed, 25 Jun 2025 14:53:59 -0400 Subject: [PATCH] AutoYADM commit: 2025-06-25 14:53:59 --- .config/kak/autoload/search-highlight.kak | 3 +++ .config/kak/kakrc | 9 ++------- 2 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 .config/kak/autoload/search-highlight.kak diff --git a/.config/kak/autoload/search-highlight.kak b/.config/kak/autoload/search-highlight.kak new file mode 100644 index 00000000..259c8a0b --- /dev/null +++ b/.config/kak/autoload/search-highlight.kak @@ -0,0 +1,3 @@ +# used by kakrc.kak to highlight as keywords +add-highlighter global/ dynregex '%reg{/}' 0:rgb:D87C4A+i + diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 06f171b2..f9f2048c 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -20,7 +20,6 @@ declare-option -hidden bool on_server %sh{ define-command -override true nop define-command -override false fail -# used by kakrc.kak to highlight as keywords try %{ %opt{on_server} @@ -125,7 +124,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 @@ -133,12 +132,8 @@ hook global WinSetOption filetype=kak %{ fi } # make brackets gray a-la Ashen - 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 + 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 }