AutoYADM commit: 2025-06-25 14:38:30
This commit is contained in:
parent
57eb28d18c
commit
9178a31f4f
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue