From 327e8557354cabe4873c5ea0359fe24c809ce4b4 Mon Sep 17 00:00:00 2001 From: joe-sinopoli <3653367+joe-sinopoli@users.noreply.github.com> Date: Fri, 13 Sep 2024 15:56:19 -0400 Subject: [PATCH] key mapping for closing buffers in telescope --- init.lua | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index ad5cd328..22da83b3 100644 --- a/init.lua +++ b/init.lua @@ -383,11 +383,18 @@ 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 = { + n = { + [''] = require('telescope.actions').delete_buffer, + }, + i = { + [''] = 'which_key', + [''] = require('telescope.actions').delete_buffer, + }, + -- i = { [''] = 'to_fuzzy_refine' }, + }, + }, -- pickers = {} extensions = { ['ui-select'] = {