From d86a07a4a05e4fc7a78aecb03d0e214ad42ee580 Mon Sep 17 00:00:00 2001 From: rootiest Date: Sat, 8 Feb 2025 20:18:05 -0500 Subject: [PATCH] use new Pick global in dashboard --- lua/data/dash.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/data/dash.lua b/lua/data/dash.lua index f97b240..152abd6 100644 --- a/lua/data/dash.lua +++ b/lua/data/dash.lua @@ -25,13 +25,13 @@ M.fallback_logo = [[ -- Define dashboard button items in a single table local dashboard_buttons = { -- stylua: ignore start - { key = "f", icon = " ", desc = " Find File", action = function() require("data.func").pick() end }, + { key = "f", icon = " ", desc = " Find File", action = function() Pick() end }, { key = "n", icon = " ", desc = " New File", action = function() vim.cmd("ene | startinsert") end }, - { key = "r", icon = " ", desc = " Recent Files", action = function() require("data.func").pick("oldfiles") end }, - { key = "g", icon = " ", desc = " Grep Text", action = function() require("data.func").pick("grep") end }, - { key = "p", icon = "󰙅 ", desc = " Pick Tree", action = function() require("data.func").pick("file_browser", "mini") end }, + { key = "r", icon = " ", desc = " Recent Files", action = function() Pick("oldfiles") end }, + { key = "g", icon = " ", desc = " Grep Text", action = function() Pick("grep") end }, + { key = "p", icon = "󰙅 ", desc = " Pick Tree", action = function() Pick("file_browser", "mini") end }, { key = "z", icon = " ", desc = " LazyGit", action = function() Snacks.lazygit() end }, - { key = "c", icon = " ", desc = " Config", action = function() require("data.func").pick("config_files") end }, + { key = "c", icon = " ", desc = " Config", action = function() Pick("config_files") end }, { key = "s", icon = "󰶮 ", desc = " Restore Session", action = function() require("persistence").load() end }, { key = "S", icon = " ", desc = " Remote Session", action = function() require("config.rootiest").load_remote() end }, { key = "l", icon = "󰒲 ", desc = " Lazy", action = function() vim.cmd("Lazy ") end },