AutoYADM commit: 2025-06-25 14:23:24

This commit is contained in:
Daniel Fichtinger 2025-06-25 14:23:24 -04:00
parent df6c0069c1
commit 57eb28d18c
2 changed files with 9 additions and 4 deletions

View file

@ -20,6 +20,8 @@ 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}
colorscheme ashen-local
@ -122,6 +124,13 @@ set-option global tabstop 4
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
eval %sh{
join() { sep=$2; eval set -- $1; IFS="$sep"; echo "$*"; }
if [ -n "$kak_opt_extra_kak_keywords" ]; then
printf '%s' "add-highlighter shared/kakrc/code/extra_keywords regex (?:\s|\A)\K($(join "${kak_opt_extra_kak_keywords}" '|'))(?:(?=\s)|\z) 0:keyword"
fi
}
# make brackets gray a-la Ashen
add-highlighter window/bracket regex [\[\]\(\)\{\}]{1} 0:rgb:737373
# special highlighting for escaped goodies in regex