zsh-vi-mode
zsh-vi-mode copied to clipboard
Cursor not blinking foot terminal
setting term=xterm-256color
solves the issue or changing cursor type in vim mode.
but cursor blinking not working enabled in foot.ini and added zvm variable too.
Hi @niksingh710
Is your issue settled down? And I can't catch up your issue and can you provide much more details?
Thanks & Regards
Hi @niksingh710
Is your issue settled down? And I can't catch up your issue and can you provide much more details?
Thanks & Regards
I am rn unsure that this is happening because of zsh-vi-mode or starship
it is not terminal specific but it is happening because of zsh-vi-mode the cursor is not blinking.
# Genralised options
setopt INC_APPEND_HISTORY
setopt HIST_IGNORE_SPACE
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_FIND_NO_DUPS
setopt HIST_SAVE_NO_DUPS
export HISTSIZE=1000000000
export SAVEHIST=1000000000
export HISTFILE=${HISTFILE:-"$HOME/.zsh_history"}
check() {
command -v "$1" >/dev/null 2>&1
}
loc="$HOME/.config/shell"
[ -f "$loc"/zsh/plugins/zsh-snap/znap.zsh ] ||
git clone \
--depth 1 \
-- https://github.com/marlonrichert/zsh-snap.git \
"$loc/zsh/plugins/zsh-snap"
. "$loc/zsh/plugins/zsh-snap/znap.zsh"
vi_setup(){
ZVM_VI_INSERT_ESCAPE_BINDKEY=jk
ZVM_INSERT_MODE_CURSOR=$ZVM_CURSOR_BLINKING_BEAM
ZVM_NORMAL_MODE_CURSOR=$ZVM_CURSOR_BLOCK
ZVM_OPPEND_MODE_CURSOR=$ZVM_CURSOR_UNDERLINE
ZVM_INIT_MODE=sourcing
ZVM_LAZY_KEYBINDINGS=false
}
# The plugin will auto execute this zvm_config function
zvm_config() {
# Retrieve default cursor styles
local ncur=$(zvm_cursor_style $ZVM_NORMAL_MODE_CURSOR)
local icur=$(zvm_cursor_style $ZVM_INSERT_MODE_CURSOR)
# Append your custom color for your cursor
ZVM_INSERT_MODE_CURSOR=$icur'\e\e]12;white\a'
ZVM_NORMAL_MODE_CURSOR=$ncur'\e\e]12;#008800\a'
}
check znap && {
# == VI MODE ==
vi_setup
znap source jeffreytse/zsh-vi-mode
}
unset loc
unset -f check```
here is the minimal config that gives the issue. @jeffreytse