Skip to content

Commit

Permalink
feat(fzf): Bind ctrl+d & ctrl+f to scroll fzf preview down/up respect…
Browse files Browse the repository at this point in the history
…ively
  • Loading branch information
mrjones2014 committed Sep 6, 2023
1 parent e85d6f3 commit 4f44fbe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion home-manager/modules/fzf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ in {
programs.fzf = {
enable = true;
defaultCommand = "${pkgs.ripgrep}/bin/rg --files";
defaultOptions = [ "--prompt=' '" "--marker=''" "--marker=' '" ];
defaultOptions = [
"--prompt=' '"
"--marker=''"
"--marker=' '"
# this keybind should match the telescope ones in nvim config
''--bind="ctrl-d:preview-down,ctrl-f:preview-up"''
];
fileWidgetCommand = "${pkgs.ripgrep}/bin/rg --files";
fileWidgetOptions = [
# Preview files with bat
Expand Down

0 comments on commit 4f44fbe

Please sign in to comment.