From e17b91884afb2b53e4dd840e7b91b2670fa7b332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Thu, 4 Mar 2021 14:41:59 +0100 Subject: [PATCH] Add quickfix list mappings for telescope --- symlinks/config/nvim/lua/plugin/telescope.lua | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/symlinks/config/nvim/lua/plugin/telescope.lua b/symlinks/config/nvim/lua/plugin/telescope.lua index c805532..7572ff1 100644 --- a/symlinks/config/nvim/lua/plugin/telescope.lua +++ b/symlinks/config/nvim/lua/plugin/telescope.lua @@ -2,7 +2,22 @@ -- - Telescope configuration - ------------------------------------------------------------------------------- -require('telescope').setup{ +local actions = require('telescope.actions') +require('telescope').setup { + defaults = { + mappings = { + i = { + -- Switch out M-q and C-q since C-q will be used more often + [""] = actions.send_to_qflist + actions.open_qflist, + [""] = actions.send_selected_to_qflist + actions.open_qflist, + }, + n = { + -- Switch out M-q and C-q since C-q will be used more often + [""] = actions.send_to_qflist + actions.open_qflist, + [""] = actions.send_selected_to_qflist + actions.open_qflist, + } + }, + } } require('telescope').load_extension('dap')