37 lines
1 KiB
Lua
37 lines
1 KiB
Lua
local Util = require("lazyvim.util")
|
|
|
|
return {
|
|
{
|
|
"jvgrootveld/telescope-zoxide",
|
|
config = function(_, opts)
|
|
Util.on_load("telescope.nvim", function()
|
|
require("telescope").setup({
|
|
extensions = {
|
|
zoxide = {
|
|
mappings = {
|
|
default = {
|
|
after_action = function(selection)
|
|
require("telescope.builtin").find_files({ cwd = selection.path })
|
|
end,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
})
|
|
require("telescope").load_extension("zoxide")
|
|
end)
|
|
end,
|
|
keys = {
|
|
{ "<leader>fz", "<cmd>Telescope zoxide list<CR>", desc = "Zoxide" },
|
|
},
|
|
},
|
|
{
|
|
"goolord/alpha-nvim",
|
|
opts = function(_, dashboard)
|
|
local button = dashboard.button("z", " " .. " Zoxide", "<cmd>Telescope zoxide list <CR>")
|
|
button.opts.hl = "AlphaButtons"
|
|
button.opts.hl_shortcut = "AlphaShortcut"
|
|
table.insert(dashboard.section.buttons.val, 5, button)
|
|
end,
|
|
},
|
|
}
|