diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua index 8f4891b7..e5b31952 100644 --- a/lua/lazyvim/plugins/editor.lua +++ b/lua/lazyvim/plugins/editor.lua @@ -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 = { [""] = open_with_trouble }, + n = { [""] = open_with_trouble }, + }, + }, window = { mappings = { ["l"] = "open",