Add telescope mapping to delete buffers

This commit is contained in:
Marcus 2026-01-29 11:31:29 +08:00
parent c744184104
commit 75f37c95d3
1 changed files with 10 additions and 5 deletions

View File

@ -438,11 +438,16 @@ require('lazy').setup({
-- You can put your default mappings / updates / etc. in here
-- All the info you're looking for is in `:help telescope.setup()`
--
-- defaults = {
-- mappings = {
-- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
-- },
-- },
defaults = {
mappings = {
i = {
['<C-w>'] = require('telescope.actions').delete_buffer,
},
n = {
['<C-w>'] = require('telescope.actions').delete_buffer,
},
},
},
pickers = {
colorscheme = { enable_preview = true },
},