From c2630d15946f1c21b4fa43c509467c63b2d3f64d Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Wed, 23 Oct 2024 14:30:56 +0100 Subject: [PATCH] opening with trouble --- lua/configs/telescope.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/configs/telescope.lua b/lua/configs/telescope.lua index 88654bf..12221f8 100644 --- a/lua/configs/telescope.lua +++ b/lua/configs/telescope.lua @@ -1,5 +1,7 @@ dofile(vim.g.base46_cache .. "telescope") +local open_with_trouble = require("trouble.sources.telescope").open + local options = { pickers = { colorscheme = { enable_preview = true }, @@ -33,7 +35,8 @@ local options = { height = 0.80, }, mappings = { - n = { ["q"] = require("telescope.actions").close }, + n = { ["q"] = open_with_trouble, ["t"] = open_with_trouble }, + i = { ["t"] = open_with_trouble }, }, },