Add quickfix list mappings for telescope

pull/1/head
Ensar Sarajčić 2021-03-04 14:41:59 +01:00
parent be6cb6c087
commit e17b91884a
1 changed files with 16 additions and 1 deletions

View File

@ -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
["<M-q>"] = actions.send_to_qflist + actions.open_qflist,
["<C-q>"] = actions.send_selected_to_qflist + actions.open_qflist,
},
n = {
-- Switch out M-q and C-q since C-q will be used more often
["<M-q>"] = actions.send_to_qflist + actions.open_qflist,
["<C-q>"] = actions.send_selected_to_qflist + actions.open_qflist,
}
},
}
}
require('telescope').load_extension('dap')