fish: move fzf configuration to nix
2 files changed, 17 insertions(+), 7 deletions(-)
M user/settings/fish/config.fish → user/settings/fish/config.fish
@@ -1,9 +1,3 @@ -bind \es __ghq_repository_search -# don't bind ctrl-t, it does nice things on macOS/BSD -set FZF_CTRL_T_COMMAND -set --export FZF_DEFAULT_OPTS '--cycle --layout=reverse --border --height=90% --preview-window=wrap --marker="*"' -fzf_configure_bindings --directory=\cx\cf - if set --query ZED_TERM set -x EDITOR "zed -w" end
M user/settings/shell.nix → user/settings/shell.nix
@@ -147,6 +147,22 @@ }; }; home.packages = with pkgs; [ personal.dirstat-rs - fzf ]; + programs.fzf = { + enable = true; + defaultOptions = [ + "--cycle" + "--layout=reverse" + "--border" + "--height=90%" + "--preview-window=wrap" + "--marker='*'" + ]; + fileWidgetCommand = ""; + enableFishIntegration = true; + }; + programs.fish.interactiveShellInit = lib.mkOrder 201 '' + fzf_configure_bindings --directory=\cx\cf + bind alt-s __ghq_repository_search + ''; }