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 @@...@@ -120,6 +120,9 @@
120 enable = true;120 enable = true;
121 setupOpts = {121 setupOpts = {
122 fzf_colors = true;122 fzf_colors = true;
123 keymap.fzf = {
124 "ctrl-q" = "select-all+accept";
125 };
123 };126 };
124 };127 };
125 autocomplete.blink-cmp = {128 autocomplete.blink-cmp = {
modules/neovim/keybind.nix+5-4
...@@ -24,11 +24,12 @@ in...@@ -24,11 +24,12 @@ in
2424
25 # pickers25 # pickers
26 pick-file = keyCmd "n" "<leader><leader>" "FzfLua files";26 pick-file = keyCmd "n" "<leader><leader>" "FzfLua files";
27 pick-buffer = keyCmd "n" "<leader>b" "FzfLua buffers";
27 pick-mark = keyCmd "n" "<leader>'" "FzfLua marks";28 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";
30 pick-recent-command = keyCmd "n" "<leader>fc" "FzfLua command_history";29 pick-recent-command = keyCmd "n" "<leader>fc" "FzfLua command_history";
31 pick-other = keyCmd "n" "<leader>f?" "FzfLua builtin"; # picker of Fzf pickers30 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
33 # lsp34 # lsp
34 code-action =35 code-action =
...@@ -38,7 +39,7 @@ in...@@ -38,7 +39,7 @@ in
38 # subtle nice features39 # subtle nice features
39 visual-dedent = keyRemap "v" "<" "<gv"; # keep selection40 visual-dedent = keyRemap "v" "<" "<gv"; # keep selection
40 visual-indent = keyRemap "v" ">" ">gv"; # keep selection41 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>";
42 };43 };
4344
44 # implementation45 # implementation
nvim+1-1
...@@ -11,4 +11,4 @@ if [ -z "$name" ]; then...@@ -11,4 +11,4 @@ if [ -z "$name" ]; then
11 echo "Configure this wrapper script with your name." >&211 echo "Configure this wrapper script with your name." >&2
12 exit 112 exit 1
13fi13fi
14exec nix run ".#nvim-$name" -- "$@"14exec nix run "$(dirname "$0")#nvim-$name" -- "$@"