From 719000fb10b11e54e3b5a54b785a2ca9f69aef49 Mon Sep 17 00:00:00 2001 From: Ray Wong Date: Fri, 7 Jun 2024 19:19:57 +0900 Subject: [PATCH] fix(editor): telescope init error when trouble.nvim is disabled --- lua/lazyvim/plugins/editor.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua index 3dc5159b..8f4891b7 100644 --- a/lua/lazyvim/plugins/editor.lua +++ b/lua/lazyvim/plugins/editor.lua @@ -240,7 +240,9 @@ return { opts = function() local actions = require("telescope.actions") - local open_with_trouble = require("trouble.sources.telescope").open + local open_with_trouble = function(...) + return require("trouble.sources.telescope").open(...) + end local find_files_no_ignore = function() local action_state = require("telescope.actions.state") local line = action_state.get_current_line()