feat(trouble): add open with trouble mapping telescope

This commit is contained in:
Rubin Bhandari 2024-06-09 12:01:37 +05:45
parent aa059e0d49
commit f3a5d52260

View file

@ -1,5 +1,6 @@
local have_make = vim.fn.executable("make") == 1
local have_cmake = vim.fn.executable("cmake") == 1
local open_with_trouble = require("trouble.sources.telescope").open
return {
@ -70,6 +71,12 @@ return {
follow_current_file = { enabled = true },
use_libuv_file_watcher = true,
},
defaults = {
mappings = {
i = { ["<c-t>"] = open_with_trouble },
n = { ["<c-t>"] = open_with_trouble },
},
},
window = {
mappings = {
["l"] = "open",