From 75f37c95d37638d8dab2137a4b49972da90b46c0 Mon Sep 17 00:00:00 2001 From: Marcus Date: Thu, 29 Jan 2026 11:31:29 +0800 Subject: [PATCH] Add telescope mapping to delete buffers --- init.lua | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 8e8583d4..c6d68965 100644 --- a/init.lua +++ b/init.lua @@ -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 = { [''] = 'to_fuzzy_refine' }, - -- }, - -- }, + defaults = { + mappings = { + i = { + [''] = require('telescope.actions').delete_buffer, + }, + n = { + [''] = require('telescope.actions').delete_buffer, + }, + }, + }, pickers = { colorscheme = { enable_preview = true }, },