AutoYADM commit: 2025-05-11 15:59:08
This commit is contained in:
parent
b52046ec71
commit
bca4ede5b6
2 changed files with 26 additions and 21 deletions
|
@ -61,9 +61,8 @@ set-face global list "%opt{orange_glow}"
|
||||||
# We implement a Helix-like cursor changing color.
|
# We implement a Helix-like cursor changing color.
|
||||||
# Off by default; ashen_cursor option must be declared:
|
# Off by default; ashen_cursor option must be declared:
|
||||||
# declare-option bool ashen_cursor true
|
# declare-option bool ashen_cursor true
|
||||||
try %{
|
declare-option bool ashen_cursor false
|
||||||
# check if ashen_dynamic_cursor option is set
|
|
||||||
nop %opt{ashen_dynamic_cursor}
|
|
||||||
# Helix-like insert mode cursor
|
# Helix-like insert mode cursor
|
||||||
set-face global PrimaryCursorNormal "%opt{background},%opt{orange_blaze}+gfb"
|
set-face global PrimaryCursorNormal "%opt{background},%opt{orange_blaze}+gfb"
|
||||||
set-face global SecondaryCursorNormal "%opt{background},%opt{orange_muted}+gf"
|
set-face global SecondaryCursorNormal "%opt{background},%opt{orange_muted}+gf"
|
||||||
|
@ -73,17 +72,22 @@ try %{
|
||||||
set-face global SecondaryCursor SecondaryCursorNormal
|
set-face global SecondaryCursor SecondaryCursorNormal
|
||||||
|
|
||||||
hook global ModeChange (push|pop):.*insert %{
|
hook global ModeChange (push|pop):.*insert %{
|
||||||
set-face window PrimaryCursor PrimaryCursorInsert
|
evaluate-commands %sh{
|
||||||
set-face window SecondaryCursor SecondaryCursorInsert
|
if [ "$kak_opt_ashen_cursor" = "true" ]; then
|
||||||
|
echo "info $kak_opt_ashen_cursor"
|
||||||
|
echo "set-face window PrimaryCursor PrimaryCursorInsert"
|
||||||
|
echo "set-face window SecondaryCursor SecondaryCursorInsert"
|
||||||
|
fi
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hook global ModeChange (push|pop):insert:.* %{
|
hook global ModeChange (push|pop):insert:.* %{
|
||||||
set-face window PrimaryCursor PrimaryCursorNormal
|
evaluate-commands %sh{
|
||||||
set-face window SecondaryCursor SecondaryCursorNormal
|
if [ "$kak_opt_ashen_cursor" = "true" ]; then
|
||||||
|
echo "set-face window PrimaryCursor PrimaryCursorNormal"
|
||||||
|
echo "set-face window SecondaryCursor SecondaryCursorNormal"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
} catch %{
|
|
||||||
set-face global PrimaryCursor "%opt{background},%opt{orange_blaze}+gfb"
|
|
||||||
set-face global SecondaryCursor "%opt{background},%opt{orange_muted}+gf"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Built-in UI
|
# Built-in UI
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
eval %sh{ kak-tree-sitter -dks --init $kak_session }
|
eval %sh{ kak-tree-sitter -dks --init $kak_session }
|
||||||
declare-option bool ashen_dynamic_cursor true
|
# declare-option bool ashen_dynamic_cursor true
|
||||||
colorscheme ashen
|
colorscheme ashen
|
||||||
|
# set-option global ashen_cursor true
|
||||||
|
|
||||||
# disable clippy
|
# disable clippy
|
||||||
set-option global ui_options terminal_assistant=none
|
set-option global ui_options terminal_assistant=none
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue