Use more Nix-friendly fzf zsh integration
This commit is contained in:
parent
87079f64dc
commit
58f0145f5a
|
|
@ -45,7 +45,7 @@ in
|
||||||
shell = pkgs.${shellCfg.defaultShell};
|
shell = pkgs.${shellCfg.defaultShell};
|
||||||
ignoreShellProgramCheck = true;
|
ignoreShellProgramCheck = true;
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
fzf
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./direnv.nix
|
./direnv.nix
|
||||||
|
./fzf.nix
|
||||||
./hyprland
|
./hyprland
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
./overlays.nix
|
./overlays.nix
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
programs.fzf = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue