authorgravatar for git@paperclover.netclover caruso <git@paperclover.net> 2025-08-19 01:01:36-07:00
committergravatar for git@paperclover.netclover caruso <git@paperclover.net> 2025-08-19 01:01:36-07:00
log12e7bbc80235b7921b32e0086c152c79c8f9236d
tree37b15c2f95ac211e1c21cb32eda1cc87f11120f7
parent4df759d4c7488dcda77205d413604343e5a3ad9e

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.

3 files changed, 9 insertions(+), 5 deletions(-)

modules/neovim/default.nix+3
......@@ -120,6 +120,9 @@
120120 enable = true;
121121 setupOpts = {
122122 fzf_colors = true;
123 keymap.fzf = {
124 "ctrl-q" = "select-all+accept";
125 };
123126 };
124127 };
125128 autocomplete.blink-cmp = {
modules/neovim/keybind.nix+5-4
......@@ -24,11 +24,12 @@ in
2424
2525 # pickers
2626 pick-file = keyCmd "n" "<leader><leader>" "FzfLua files";
27 pick-buffer = keyCmd "n" "<leader>b" "FzfLua buffers";
2728 pick-mark = keyCmd "n" "<leader>'" "FzfLua marks";
28 #pick-buffer = keyCmd "n" "<leader>b" "FzfLua buffers";
29 pick-grep = keyCmd "n" "<leader>ff" "FzfLua grep_project";
3029 pick-recent-command = keyCmd "n" "<leader>fc" "FzfLua command_history";
31 pick-other = keyCmd "n" "<leader>f?" "FzfLua builtin"; # picker of Fzf pickers
30 pick-other = keyCmd "n" "<leader><tab>" "FzfLua builtin"; # picker of Fzf pickers
31 find-fuzzy = keyCmd "n" "<leader>ff" "FzfLua grep_project";
32 find-grep = keyCmd "n" "<leader>fg" "FzfLua live_grep";
3233
3334 # lsp
3435 code-action =
......@@ -38,7 +39,7 @@ in
3839 # subtle nice features
3940 visual-dedent = keyRemap "v" "<" "<gv"; # keep selection
4041 visual-indent = keyRemap "v" ">" ">gv"; # keep selection
41 clear-search-highlights = keyRemap "n" "<esc" ":noh<Return><esc>";
42 clear-search-highlights = keyRemap "n" "<esc>" ":noh<Return><esc>";
4243 };
4344
4445 # implementation
nvim+1-1
......@@ -11,4 +11,4 @@ if [ -z "$name" ]; then
1111 echo "Configure this wrapper script with your name." >&2
1212 exit 1
1313fi
14exec nix run ".#nvim-$name" -- "$@"
14exec nix run "$(dirname "$0")#nvim-$name" -- "$@"