feat: more neovim things

space space -> pick a file in project
space b  -> pick a buffer
space '  -> pick a mark
space ?  -> search all keyboard shortcuts
space ff -> file fuzzy
space fg -> file grep
 (you can access regex search from within these two)
 (space fg then ctrl+q is helpful)

there are many other cute FzfLua menus, such as git_bcommits. but these
aren't useful enough on their own to warrent a dedicated key. you wont
remember them. but you can remember space tab to open the meta search to
search the search providers. i low-key want to use this one at load, so
i made it very easy to trigger. space tab bcom enter for example.
This commit is contained in:
clover caruso 2025-08-19 01:01:36 -07:00
parent 4df759d4c7
commit 12e7bbc802
3 changed files with 9 additions and 5 deletions

View file

@ -120,6 +120,9 @@
enable = true;
setupOpts = {
fzf_colors = true;
keymap.fzf = {
"ctrl-q" = "select-all+accept";
};
};
};
autocomplete.blink-cmp = {

View file

@ -24,11 +24,12 @@ in
# pickers
pick-file = keyCmd "n" "<leader><leader>" "FzfLua files";
pick-buffer = keyCmd "n" "<leader>b" "FzfLua buffers";
pick-mark = keyCmd "n" "<leader>'" "FzfLua marks";
#pick-buffer = keyCmd "n" "<leader>b" "FzfLua buffers";
pick-grep = keyCmd "n" "<leader>ff" "FzfLua grep_project";
pick-recent-command = keyCmd "n" "<leader>fc" "FzfLua command_history";
pick-other = keyCmd "n" "<leader>f?" "FzfLua builtin"; # picker of Fzf pickers
pick-other = keyCmd "n" "<leader><tab>" "FzfLua builtin"; # picker of Fzf pickers
find-fuzzy = keyCmd "n" "<leader>ff" "FzfLua grep_project";
find-grep = keyCmd "n" "<leader>fg" "FzfLua live_grep";
# lsp
code-action =
@ -38,7 +39,7 @@ in
# subtle nice features
visual-dedent = keyRemap "v" "<" "<gv"; # keep selection
visual-indent = keyRemap "v" ">" ">gv"; # keep selection
clear-search-highlights = keyRemap "n" "<esc" ":noh<Return><esc>";
clear-search-highlights = keyRemap "n" "<esc>" ":noh<Return><esc>";
};
# implementation

2
nvim
View file

@ -11,4 +11,4 @@ if [ -z "$name" ]; then
echo "Configure this wrapper script with your name." >&2
exit 1
fi
exec nix run ".#nvim-$name" -- "$@"
exec nix run "$(dirname "$0")#nvim-$name" -- "$@"