AutoYADM commit: 2025-06-25 14:53:59
This commit is contained in:
parent
9178a31f4f
commit
344f4df059
2 changed files with 5 additions and 7 deletions
3
.config/kak/autoload/search-highlight.kak
Normal file
3
.config/kak/autoload/search-highlight.kak
Normal file
|
@ -0,0 +1,3 @@
|
|||
# used by kakrc.kak to highlight as keywords
|
||||
add-highlighter global/ dynregex '%reg{/}' 0:rgb:D87C4A+i
|
||||
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue