feat(telescope): better defaults

This commit is contained in:
Folke Lemaitre 2023-01-04 13:22:28 +01:00
parent 725bf0d00e
commit e7c5d8a470
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -86,7 +86,31 @@ return {
desc = "Goto Symbol", desc = "Goto Symbol",
}, },
}, },
config = true, config = {
defaults = {
prompt_prefix = "",
selection_caret = "",
mappings = {
i = {
["<c-t>"] = function(...)
return require("trouble.providers.telescope").open_with_trouble(...)
end,
["<C-i>"] = function()
util.telescope("find_files", { no_ignore = true })()
end,
["<C-h>"] = function()
util.telescope("find_files", { hidden = true })()
end,
["<C-Down>"] = function(...)
return require("telescope.actions").cycle_history_next(...)
end,
["<C-Up>"] = function(...)
return require("telescope.actions").cycle_history_prev(...)
end,
},
},
},
},
}, },
-- easily jump to any location and enhanced f/t motions for Leap -- easily jump to any location and enhanced f/t motions for Leap