|
|
|
@ -6,13 +6,35 @@ return {
|
|
|
|
|
require("telescope").load_extension("fzy_native")
|
|
|
|
|
require("telescope").load_extension("catppuccin")
|
|
|
|
|
require("telescope").load_extension("smart_open")
|
|
|
|
|
|
|
|
|
|
local actions = require("telescope.actions")
|
|
|
|
|
require("telescope").setup({
|
|
|
|
|
defaults = {
|
|
|
|
|
mappings = {
|
|
|
|
|
i = {
|
|
|
|
|
["<A-j>"] = actions.move_selection_next,
|
|
|
|
|
["<A-k>"] = actions.move_selection_previous,
|
|
|
|
|
["<A-n>"] = actions.cycle_history_next,
|
|
|
|
|
["<A-p>"] = actions.cycle_history_prev,
|
|
|
|
|
},
|
|
|
|
|
n = {
|
|
|
|
|
["<A-j>"] = actions.move_selection_next,
|
|
|
|
|
["<A-k>"] = actions.move_selection_previous,
|
|
|
|
|
["<A-n>"] = actions.preview_scrolling_down,
|
|
|
|
|
["<A-p>"] = actions.preview_scrolling_up,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
end,
|
|
|
|
|
keys = {
|
|
|
|
|
{ "<leader>ff", "<cmd>Telescope smart_open<cr>", "Find files" },
|
|
|
|
|
{ "<leader>ff", "<cmd>Telescope smart_open<cr>", "Find Files" },
|
|
|
|
|
{ "<leader>fp", "<cmd>Telescope projects<cr>", "All Projects" },
|
|
|
|
|
{ "<leader>fr", "<cmd>Telescope oldfiles<cr>", "Recent Files" },
|
|
|
|
|
{ "<leader>fg", "<cmd>Telescope live_grep<cr>", "Live grep" },
|
|
|
|
|
{ "<leader>fc", "<cmd>Telescope catppuccin<cr>", "Catppuccin Colours" },
|
|
|
|
|
{ "<leader>fg", "<cmd>Telescope live_grep<cr>", "Find Text" },
|
|
|
|
|
{ "<leader>fh", "<cmd>Telescope highlights<cr>", "Find Highlights" },
|
|
|
|
|
{ "<leader>fc", "<cmd>Telescope current_buffer_fuzzy_find<cr>", "Find In File" },
|
|
|
|
|
{ "<leader>fC", "<cmd>Telescope catppuccin<cr>", "Catppuccin Colours" },
|
|
|
|
|
{ "<leader>fj", "<cmd>Telescope jumplist<cr>", "Jumplist" },
|
|
|
|
|
},
|
|
|
|
|
cmd = "Telescope",
|
|
|
|
|