jeffreytse/zsh-vi-mode
View on GitHubKey binding messed up with fzf not compatibale in nixos
Open
#265 opened on Feb 11, 2024
good first issue
Repository metrics
- Stars
- (4,364 stars)
- PR merge metrics
- (PR metrics pending)
Description
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
- I have read through the README page
- I have the latest version of zsh-vi-mode
- 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
'';