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:
parent
4df759d4c7
commit
12e7bbc802
3 changed files with 9 additions and 5 deletions
|
@ -120,6 +120,9 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
setupOpts = {
|
setupOpts = {
|
||||||
fzf_colors = true;
|
fzf_colors = true;
|
||||||
|
keymap.fzf = {
|
||||||
|
"ctrl-q" = "select-all+accept";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
autocomplete.blink-cmp = {
|
autocomplete.blink-cmp = {
|
||||||
|
|
|
@ -24,11 +24,12 @@ in
|
||||||
|
|
||||||
# pickers
|
# pickers
|
||||||
pick-file = keyCmd "n" "<leader><leader>" "FzfLua files";
|
pick-file = keyCmd "n" "<leader><leader>" "FzfLua files";
|
||||||
|
pick-buffer = keyCmd "n" "<leader>b" "FzfLua buffers";
|
||||||
pick-mark = keyCmd "n" "<leader>'" "FzfLua marks";
|
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-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
|
# lsp
|
||||||
code-action =
|
code-action =
|
||||||
|
@ -38,7 +39,7 @@ in
|
||||||
# subtle nice features
|
# subtle nice features
|
||||||
visual-dedent = keyRemap "v" "<" "<gv"; # keep selection
|
visual-dedent = keyRemap "v" "<" "<gv"; # keep selection
|
||||||
visual-indent = 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
|
# implementation
|
||||||
|
|
2
nvim
2
nvim
|
@ -11,4 +11,4 @@ if [ -z "$name" ]; then
|
||||||
echo "Configure this wrapper script with your name." >&2
|
echo "Configure this wrapper script with your name." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
exec nix run ".#nvim-$name" -- "$@"
|
exec nix run "$(dirname "$0")#nvim-$name" -- "$@"
|
||||||
|
|
Loading…
Reference in a new issue