use new Pick global in dashboard
This commit is contained in:
+5
-5
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user