AutoYADM commit: 2025-05-11 16:14:08

This commit is contained in:
Daniel Fichtinger 2025-05-11 16:14:08 -04:00
parent bca4ede5b6
commit f4861278a8
2 changed files with 6 additions and 8 deletions

View file

@ -59,11 +59,10 @@ set-face global list "%opt{orange_glow}"
# SPECIAL CURSOR BLOCK # SPECIAL CURSOR BLOCK
# 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_dynamic_cursor option must be set to true.
# declare-option bool ashen_cursor true declare-option bool ashen_dynamic_cursor false
declare-option bool ashen_cursor false
# Helix-like insert mode cursor # Helix-like insert/normal 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"
set-face global PrimaryCursorInsert "%opt{background},%opt{g_3}+gfb" set-face global PrimaryCursorInsert "%opt{background},%opt{g_3}+gfb"
@ -73,8 +72,7 @@ set-face global SecondaryCursor SecondaryCursorNormal
hook global ModeChange (push|pop):.*insert %{ hook global ModeChange (push|pop):.*insert %{
evaluate-commands %sh{ evaluate-commands %sh{
if [ "$kak_opt_ashen_cursor" = "true" ]; then if [ "$kak_opt_ashen_dynamic_cursor" = "true" ]; then
echo "info $kak_opt_ashen_cursor"
echo "set-face window PrimaryCursor PrimaryCursorInsert" echo "set-face window PrimaryCursor PrimaryCursorInsert"
echo "set-face window SecondaryCursor SecondaryCursorInsert" echo "set-face window SecondaryCursor SecondaryCursorInsert"
fi fi
@ -83,7 +81,7 @@ hook global ModeChange (push|pop):.*insert %{
hook global ModeChange (push|pop):insert:.* %{ hook global ModeChange (push|pop):insert:.* %{
evaluate-commands %sh{ evaluate-commands %sh{
if [ "$kak_opt_ashen_cursor" = "true" ]; then if [ "$kak_opt_ashen_dynamic_cursor" = "true" ]; then
echo "set-face window PrimaryCursor PrimaryCursorNormal" echo "set-face window PrimaryCursor PrimaryCursorNormal"
echo "set-face window SecondaryCursor SecondaryCursorNormal" echo "set-face window SecondaryCursor SecondaryCursorNormal"
fi fi

View file

@ -1,7 +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 set-option global ashen_dynamic_cursor true
# disable clippy # disable clippy
set-option global ui_options terminal_assistant=none set-option global ui_options terminal_assistant=none