feat(telescope.lua): add key mappings to use <C-t> to open trouble and send to qflist with <C-q> in insert and normal mode to improve usability and productivity

This commit is contained in:
David Ibia
2024-07-30 23:22:19 +01:00
parent 43c3a7ce37
commit b235a80f10

View File

@@ -1,5 +1,6 @@
local telescope = require("telescope")
local builtin = require("telescope.builtin")
local actions = require("telescope.actions")
local trouble = require("trouble.sources.telescope")
@@ -16,10 +17,12 @@ telescope.setup({
},
mappings = {
i = {
["<C-q>"] = trouble.open,
["<C-t>"] = trouble.open,
["<C-q>"] = actions.send_to_qflist,
},
n = {
["<C-q>"] = trouble.open,
["<C-t>"] = trouble.open,
["<C-q>"] = actions.send_to_qflist,
},
},
},