feat: add new Telescope extensions including frecency, undo tree, and recent files

This commit is contained in:
2024-09-15 01:07:03 -04:00
parent 70c3f4dc44
commit d140f928ca
7 changed files with 150 additions and 64 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ M.alpha = {
-- stylua: ignore start
dashboard.section.buttons.val = {
---@diagnostic disable: param-type-mismatch
dashboard.button("f", "" .. " Find file", [[<cmd>lua require("data.func").frecency_picker() <cr>]]),
dashboard.button("f", "" .. " Find file", LazyVim.pick("find_files")),
dashboard.button("n", "" .. " New file", [[<cmd> ene <BAR> startinsert <cr>]]),
dashboard.button("r", "" .. " Recent files", LazyVim.pick("oldfiles")),
dashboard.button("g", "" .. " Grep text", LazyVim.pick("live_grep")),
@@ -64,7 +64,7 @@ M.alpha = {
M.dashboard_nvim = {
choices = {
{ -- Find File
action = 'lua require("data.func".frecency_picker()()',
action = 'lua LazyVim.pick("find_files")()',
desc = " Find File",
icon = "",
key = "f",