diff --git a/.config/kak/colors/ashen.kak b/.config/kak/colors/ashen.kak index d2e6e82f..1818d867 100644 --- a/.config/kak/colors/ashen.kak +++ b/.config/kak/colors/ashen.kak @@ -59,11 +59,10 @@ set-face global list "%opt{orange_glow}" # SPECIAL CURSOR BLOCK # We implement a Helix-like cursor changing color. -# Off by default; ashen_cursor option must be declared: -# declare-option bool ashen_cursor true -declare-option bool ashen_cursor false +# Off by default; ashen_dynamic_cursor option must be set to true. +declare-option bool ashen_dynamic_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 SecondaryCursorNormal "%opt{background},%opt{orange_muted}+gf" 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 %{ evaluate-commands %sh{ - if [ "$kak_opt_ashen_cursor" = "true" ]; then - echo "info $kak_opt_ashen_cursor" + if [ "$kak_opt_ashen_dynamic_cursor" = "true" ]; then echo "set-face window PrimaryCursor PrimaryCursorInsert" echo "set-face window SecondaryCursor SecondaryCursorInsert" fi @@ -83,7 +81,7 @@ hook global ModeChange (push|pop):.*insert %{ hook global ModeChange (push|pop):insert:.* %{ 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 SecondaryCursor SecondaryCursorNormal" fi diff --git a/.config/kak/kakrc b/.config/kak/kakrc index f282a456..03119257 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -1,7 +1,7 @@ eval %sh{ kak-tree-sitter -dks --init $kak_session } # declare-option bool ashen_dynamic_cursor true colorscheme ashen -# set-option global ashen_cursor true +set-option global ashen_dynamic_cursor true # disable clippy set-option global ui_options terminal_assistant=none