fix tmux cursor

This commit is contained in:
EvilMuffinHa 2022-08-17 16:31:08 -04:00
parent 8633ae21d1
commit e482ff71fd
2 changed files with 13 additions and 1 deletions

View File

@ -49,7 +49,7 @@ o.listchars = {
vim.cmd [[
augroup options_guicursor
au!
" Reset to underscore cursor for terminal nvim (https://github.com/neovim/neovim/issues/4867#issuecomment-291249173)
" Reset to vertical cursor for terminal nvim (https://github.com/neovim/neovim/issues/4867#issuecomment-291249173)
au VimLeave * set guicursor=a:ver90
augroup END
]]

View File

@ -18,4 +18,16 @@ alias tcat="/usr/bin/cat"
alias xsecurelock='XSECURELOCK_NO_COMPOSITE=1 XSECURELOCK_AUTH_BACKGROUND_COLOR=$color00 XSECURELOCK_AUTH_FOREGROUND_COLOR=$color07 xsecurelock'
function zle-keymap-select zle-line-init zle-line-finish
{
case $KEYMAP in
vicmd) print -n '\033[1 q';; # block cursor
viins|main) print -n '\033[5 q';; # line cursor
esac
}
zle -N zle-line-init
zle -N zle-line-finish
zle -N zle-keymap-select
source ~/.zshenv