From e7c5d8a47071cd0fa14280bc8543b90c2d75f85e Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 4 Jan 2023 13:22:28 +0100 Subject: [PATCH] feat(telescope): better defaults --- lua/lazyvim/plugins/editor.lua | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua index 091b6ceb..5d52fc78 100644 --- a/lua/lazyvim/plugins/editor.lua +++ b/lua/lazyvim/plugins/editor.lua @@ -86,7 +86,31 @@ return { desc = "Goto Symbol", }, }, - config = true, + config = { + defaults = { + prompt_prefix = " ", + selection_caret = " ", + mappings = { + i = { + [""] = function(...) + return require("trouble.providers.telescope").open_with_trouble(...) + end, + [""] = function() + util.telescope("find_files", { no_ignore = true })() + end, + [""] = function() + util.telescope("find_files", { hidden = true })() + end, + [""] = function(...) + return require("telescope.actions").cycle_history_next(...) + end, + [""] = function(...) + return require("telescope.actions").cycle_history_prev(...) + end, + }, + }, + }, + }, }, -- easily jump to any location and enhanced f/t motions for Leap