feat(nvim): new telescope mappings

This commit is contained in:
Sergio Laín 2024-03-24 23:42:45 +01:00
parent e79e6c8f11
commit d757f4f38a
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -53,13 +53,13 @@ return {
mappings = { mappings = {
i = { i = {
["<C-k>"] = actions.move_selection_previous, ["<C-k>"] = actions.move_selection_previous,
["<C-r>"] = actions.delete_buffer,
["<C-j>"] = actions.move_selection_next, ["<C-j>"] = actions.move_selection_next,
["<S-esc>"] = actions.close, ["<S-esc>"] = actions.close,
["<C-p>"] = require("telescope.actions.layout").toggle_preview, ["<C-p>"] = require("telescope.actions.layout").toggle_preview,
["<c-l>"] = require("telescope.actions.layout").cycle_layout_next,
["<a-l>"] = require("telescope.actions.layout").cycle_layout_prev,
["<C-Down>"] = actions.cycle_history_next, ["<C-Down>"] = actions.cycle_history_next,
["<C-Up>"] = actions.cycle_history_prev, ["<C-Up>"] = actions.cycle_history_prev,
["<esc>"] = actions.close,
}, },
}, },
file_ignore_patterns = { file_ignore_patterns = {
@ -83,6 +83,11 @@ return {
width = 0.6, width = 0.6,
}, },
sorting_strategy = "ascending", sorting_strategy = "ascending",
mappings = {
i = {
["<c-r>"] = require("telescope.actions").delete_buffer,
},
},
}, },
spell_suggest = { spell_suggest = {
layout_config = { layout_config = {