dotfiles/home/private_dot_config/zsh/functions/autosuggestions-keybinds

15 lines
359 B
Bash

##? Post load function for zsh-autosuggestions
# function autosuggestions-keybinds {
# https://github.com/zsh-users/zsh-autosuggestions
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=8'
if [[ -n "$key_info" ]]; then
# vi
bindkey -M viins "$key_info[Control]F" vi-forward-word
bindkey -M viins "$key_info[Control]E" vi-add-eol
fi
# }
# vim: ft=zsh sw=2 ts=2 et