zsh-vi-mode
zsh-vi-mode copied to clipboard
Key binding messed up with fzf not compatibale in nixos
General information
fzf shortcut does not work when following the readme guide
OS: NixOS 23.11.20231221.0b3d618 (Tapir) x86_64
Kernel: 6.1.69
Shell: zsh 5.9
Terminal: alacritty
zsh.nix
-----
....
programs.zsh = {
initExtra = ''
source ${pkgs.unstable.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
zvm_after_init_commands+=("[ -f $(fzf)/.fzf.zsh ] && source $(fzf)/.fzf.zsh")
'';
....
Basic examination
- [x] I have read through the README page
- [x] I have the latest version of zsh-vi-mode
- [x] I have tested with another terminal program
Problem description
Unclear instruction use fzf and zsh-vi-mode with nixos home manger. hints on fzf not working with nixos setup.
Reproduction steps
- install nixos with home-manager and flakes
- use homemanger with settings from above, build generarion
- open terminal press
C-r
Expected behavior
fzf opens
current output
current output
❯
bck-i-search: _
workaround
use zsh-vim-mode and source the fzf in accordance to nixos doku after the plugin
initExtra = ''
source ${zshExtensionsDir}/zsh-vim-mode.plugin.zsh
if [ -n "${commands[fzf-share]}" ]; then
source "$(fzf-share)/key-bindings.zsh"
source "$(fzf-share)/completion.zsh"
fi
'';
I can confirm. Moreover, c-f
functionality is also gone.
Btw: in normal mode, C-R is working for me.