Skip to content

Commit 327e855

Browse files
committed
key mapping for closing buffers in telescope
1 parent 827ea7c commit 327e855

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

init.lua

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,18 @@ require('lazy').setup({
383383
-- You can put your default mappings / updates / etc. in here
384384
-- All the info you're looking for is in `:help telescope.setup()`
385385
--
386-
-- defaults = {
387-
-- mappings = {
388-
-- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
389-
-- },
390-
-- },
386+
defaults = {
387+
mappings = {
388+
n = {
389+
['<c-d>'] = require('telescope.actions').delete_buffer,
390+
},
391+
i = {
392+
['<C-h>'] = 'which_key',
393+
['<c-d>'] = require('telescope.actions').delete_buffer,
394+
},
395+
-- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
396+
},
397+
},
391398
-- pickers = {}
392399
extensions = {
393400
['ui-select'] = {

0 commit comments

Comments
 (0)