mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(trouble): add open with trouble mapping telescope
This commit is contained in:
parent
aa059e0d49
commit
f3a5d52260
1 changed files with 7 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
local have_make = vim.fn.executable("make") == 1
|
local have_make = vim.fn.executable("make") == 1
|
||||||
local have_cmake = vim.fn.executable("cmake") == 1
|
local have_cmake = vim.fn.executable("cmake") == 1
|
||||||
|
local open_with_trouble = require("trouble.sources.telescope").open
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
|
|
@ -70,6 +71,12 @@ return {
|
||||||
follow_current_file = { enabled = true },
|
follow_current_file = { enabled = true },
|
||||||
use_libuv_file_watcher = true,
|
use_libuv_file_watcher = true,
|
||||||
},
|
},
|
||||||
|
defaults = {
|
||||||
|
mappings = {
|
||||||
|
i = { ["<c-t>"] = open_with_trouble },
|
||||||
|
n = { ["<c-t>"] = open_with_trouble },
|
||||||
|
},
|
||||||
|
},
|
||||||
window = {
|
window = {
|
||||||
mappings = {
|
mappings = {
|
||||||
["l"] = "open",
|
["l"] = "open",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue