Use more Nix-friendly fzf zsh integration

This commit is contained in:
Joshua Yuen 2025-08-30 17:05:25 -04:00
parent 87079f64dc
commit 58f0145f5a
Signed by: josh
GPG Key ID: 502720BC22ED411C
4 changed files with 12 additions and 7 deletions

View File

@ -45,7 +45,7 @@ in
shell = pkgs.${shellCfg.defaultShell}; shell = pkgs.${shellCfg.defaultShell};
ignoreShellProgramCheck = true; ignoreShellProgramCheck = true;
packages = with pkgs; [ packages = with pkgs; [
fzf
]; ];
}; };

View File

@ -4,6 +4,7 @@
{ {
imports = [ imports = [
./direnv.nix ./direnv.nix
./fzf.nix
./hyprland ./hyprland
./kitty.nix ./kitty.nix
./overlays.nix ./overlays.nix

10
modules/home/fzf.nix Normal file
View File

@ -0,0 +1,10 @@
{
...
}:
{
programs.fzf = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
};
}

View File

@ -54,12 +54,6 @@ in
# Control arrow keys # Control arrow keys
bindkey '^[[1;5C' forward-word bindkey '^[[1;5C' forward-word
bindkey '^[[1;5D' backward-word bindkey '^[[1;5D' backward-word
# Load fzf keybindings
if [ -n "''${commands[fzf-share]}" ]; then
source "$(fzf-share)/key-bindings.zsh";
source "$(fzf-share)/completion.zsh";
fi
''; '';
shellAliases = { shellAliases = {