diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/home/zsh.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/home/zsh.nix b/modules/home/zsh.nix index cd77c63..d7d02e7 100644 --- a/modules/home/zsh.nix +++ b/modules/home/zsh.nix @@ -68,6 +68,13 @@ in source ~/.zsh_repos/marlonrichert/zsh-autocomplete/zsh-autocomplete.plugin.zsh source ~/.zsh_repos/zsh-users/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh + # zsh-vi-mode clobbers all keybindings on init, so anything + # that needs to survive (fzf, autosuggest) goes in zvm_after_init. + function zvm_after_init() { + eval "$(fzf --zsh)" + bindkey '^I^I' autosuggest-accept + } + source ~/.zsh_repos/jeffreytse/zsh-vi-mode/zsh-vi-mode.plugin.zsh for file in ~/.config/zsh/{aliases,path,extras}; do @@ -78,8 +85,6 @@ in done command -v twm &>/dev/null && eval "$(twm --print-zsh-completion)" - - bindkey '^I^I' autosuggest-accept ''; ".config/zsh/aliases".text = '' |
