fixed some keybinding stuff with the new vi mode plugin

This commit is contained in:
Rudis Muiznieks 2024-04-25 16:04:51 -05:00
parent 9461e40283
commit 43227c6e64
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
1 changed files with 14 additions and 1 deletions

View File

@ -16,12 +16,25 @@ setopt rmstarsilent
# load zsh plugins
[ -f "$HOME/.local/share/zap/zap.zsh" ] && source "$HOME/.local/share/zap/zap.zsh"
function zvm_after_init() {
plug "zap-zsh/fzf"
typeset -A key
key[Home]=${terminfo[khome]}
key[End]=${terminfo[kend]}
key[Delete]=${terminfo[kdch1]}
zvm_bindkey viins "${key[Home]}" beginning-of-line
zvm_bindkey vicmd "${key[Home]}" beginning-of-line
zvm_bindkey viins "${key[End]}" end-of-line
zvm_bindkey vicmd "${key[End]}" end-of-line
zvm_bindkey viins "${key[Delete]}" delete-char
zvm_bindkey vicmd "${key[Delete]}" delete-char
}
plug "mafredri/zsh-async"
plug "sindresorhus/pure"
plug "zsh-users/zsh-autosuggestions"
plug "zsh-users/zsh-syntax-highlighting"
plug "zpm-zsh/ls"
plug "zap-zsh/fzf"
plug "fdellwing/zsh-bat"
plug "lukechilds/zsh-nvm"
plug "jeffreytse/zsh-vi-mode"