From 08a16b9201c13eb244b14dcc8e1e078a0ac76725 Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Sun, 8 May 2022 21:47:27 +0530 Subject: [PATCH] telescope: Add mapping to close picker with q in normal mode --- lua/plugins/configs/telescope.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/plugins/configs/telescope.lua b/lua/plugins/configs/telescope.lua index aff3cc0..5f2e817 100644 --- a/lua/plugins/configs/telescope.lua +++ b/lua/plugins/configs/telescope.lua @@ -50,6 +50,9 @@ local options = { qflist_previewer = require("telescope.previewers").vim_buffer_qflist.new, -- Developer configurations: Not meant for general override buffer_previewer_maker = require("telescope.previewers").buffer_previewer_maker, + mappings = { + n = { ["q"] = require("telescope.actions").close }, + }, }, }