diff options
| author | Simen A. W. Olsen <hello@simenandre.no> | 2026-04-02 22:51:28 +0200 |
|---|---|---|
| committer | Simen A. W. Olsen <hello@simenandre.no> | 2026-04-02 22:51:48 +0200 |
| commit | fc43f34b176809e51d7d4e8589cf989eb9398a0d (patch) | |
| tree | 96881e25538ce9b6a3acfc086c0bf35ab4e38463 /modules/home/zsh.nix | |
| parent | 5702cdcadbebea46dbb639e2894dafb1469400c3 (diff) | |
| download | dotfiles-fc43f34b176809e51d7d4e8589cf989eb9398a0d.tar.gz dotfiles-fc43f34b176809e51d7d4e8589cf989eb9398a0d.zip | |
fix: use zvm_after_init hook for fzf and keybindings
Diffstat (limited to 'modules/home/zsh.nix')
| -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 = '' |
