fix: correct frecency picker invocation in dashboard and key mappings

This commit is contained in:
2024-09-14 17:26:39 -04:00
parent 0affef0abc
commit 725c3533a1
3 changed files with 18 additions and 3 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ M.alpha = {
-- stylua: ignore start
dashboard.section.buttons.val = {
---@diagnostic disable: param-type-mismatch
dashboard.button("f", "" .. " Find file", "<cmd>Telescope frecency workspace=CWD <cr>"),
dashboard.button("f", "" .. " Find file", [[<cmd>lua require("data.func").frecency_picker() <cr>]]),
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")),
@@ -51,7 +51,7 @@ M.alpha = {
M.dashboard_nvim = {
choices = {
{ -- Find File
action = "lua LazyVim.pick()()",
action = 'lua require("data.func".frecency_picker()()',
desc = " Find File",
icon = "",
key = "f",