mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nvim/telescope: change bindings
This commit is contained in:
parent
98910c755b
commit
ff5c9dd314
1 changed files with 8 additions and 6 deletions
|
|
@ -19,14 +19,17 @@ telescope.setup {
|
||||||
vimgrep_arguments = vimgrep_arguments,
|
vimgrep_arguments = vimgrep_arguments,
|
||||||
mappings = {
|
mappings = {
|
||||||
n = {
|
n = {
|
||||||
|
-- Make it harder to accidently quit
|
||||||
["<C-c>"] = actions.close,
|
["<C-c>"] = actions.close,
|
||||||
["r"] = actions.to_fuzzy_refine,
|
["<Esc>"] = actions.nop,
|
||||||
["j"] = actions.move_selection_next,
|
|
||||||
["k"] = actions.move_selection_previous,
|
["<C-r>"] = actions.to_fuzzy_refine,
|
||||||
|
["<C-Up>"] = actions.cycle_history_prev,
|
||||||
|
["<C-Down>"] = actions.cycle_history_next,
|
||||||
},
|
},
|
||||||
i = {
|
i = {
|
||||||
["<Up>"] = actions.cycle_history_prev,
|
["<C-Up>"] = actions.cycle_history_prev,
|
||||||
["<Down>"] = actions.cycle_history_next,
|
["<C-Down>"] = actions.cycle_history_next,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
layout_config = { height = 0.5 },
|
layout_config = { height = 0.5 },
|
||||||
|
|
@ -82,7 +85,6 @@ vim.keymap.set("n", "<leader>/", builtin["current_buffer_fuzzy_find"])
|
||||||
vim.keymap.set("n", "<leader>w", find_undercursor_in_buffer)
|
vim.keymap.set("n", "<leader>w", find_undercursor_in_buffer)
|
||||||
vim.keymap.set("n", "<leader>W", grep_undercursor)
|
vim.keymap.set("n", "<leader>W", grep_undercursor)
|
||||||
|
|
||||||
-- Use / as prefix to avoid collision in bindings
|
|
||||||
vim.keymap.set("n", "<leader>sf", builtin["find_files"])
|
vim.keymap.set("n", "<leader>sf", builtin["find_files"])
|
||||||
vim.keymap.set("n", "<leader>sg", builtin["live_grep"])
|
vim.keymap.set("n", "<leader>sg", builtin["live_grep"])
|
||||||
vim.keymap.set("n", "<leader>sd", builtin["diagnostics"])
|
vim.keymap.set("n", "<leader>sd", builtin["diagnostics"])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue