make fzf and zsh-vi work together

This commit is contained in:
cy 2024-12-25 01:01:08 -05:00
parent ad61236edc
commit 7d1b5fe76f

View file

@ -39,6 +39,12 @@
initExtra = '' initExtra = ''
#disable control+s to pause terminal #disable control+s to pause terminal
unsetopt FLOW_CONTROL unsetopt FLOW_CONTROL
# manually integrate fzf cause we need to make sure zsh-vi-mode
# won't override C-r
function zvm_after_init() {
eval "$(${pkgs.fzf}/bin/fzf --zsh)"
}
source ${./p10k.zsh} source ${./p10k.zsh}
''; '';
plugins = [ plugins = [
@ -89,8 +95,8 @@
}; };
}; };
programs.fzf.enableZshIntegration = true; programs.fzf.enableZshIntegration = false;
programs.zoxide.enableZshIntegration = true; programs.zoxide.enableZshIntegration = true;
programs.eza.enableZshIntegration = true; programs.eza.enableZshIntegration = true;
programs.nix-index.enableZshIntegration = true; programs.nix-index.enableZshIntegration = false;
} }