neovim-config/lua/plugins/telescope.lua

43 lines
988 B
Lua
Raw Normal View History

return {
"telescope.nvim",
dependencies = {
{
"debugloop/telescope-undo.nvim",
keys = { { "<leader>U", "<cmd>Telescope undo<cr>" } },
config = function()
require("telescope").load_extension("undo")
end,
},
{
"xiyaowong/telescope-emoji.nvim",
keys = { { "<leader>fj", "<cmd>Telescope emoji<cr>" } },
config = function()
require("telescope").load_extension("undo")
end,
},
},
keys = {
{
"<leader>fp",
function()
require("telescope.builtin").find_files({
cwd = require("lazy.core.config").options.root,
})
end,
desc = "Find Plugin File",
2022-10-06 04:44:41 +00:00
},
2023-12-01 20:26:03 +00:00
{
"<leader>8",
function()
2023-12-01 20:28:11 +00:00
require("telescope.builtin").grep_string()
2023-12-01 20:26:03 +00:00
end,
desc = "Search word under cursor",
},
2024-05-21 15:13:49 +00:00
{
"<leader>R", -- remap clashing structural replace key map
"<cmd>Telescope resume<cr>",
desc = "Telescope resume",
},
2022-10-06 04:44:41 +00:00
},
}