Skip to content

Commit 875b4ff

Browse files
committed
update dashboard items
1 parent 156ce05 commit 875b4ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/plugins/snacks.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ return {
4949
{ icon = "", key = "e", desc = "Explorer", action = ":lua Snacks.explorer()" },
5050
{ icon = "", key = "g", desc = "Find Text", action = ":lua Snacks.dashboard.pick('live_grep')" },
5151
{ icon = "", key = "r", desc = "Recent Files", action = ":lua Snacks.dashboard.pick('oldfiles')" },
52-
{ icon = "", key = "c", desc = "Config", action = ":cd " .. vim.fn.stdpath('config') .. ' | ' .. ":lua Snacks.dashboard.pick('files', {cwd = vim.fn.stdpath('config')})" },
52+
{ icon = "", key = "c", desc = "Config", action = ":lua Snacks.dashboard.pick('files', {cwd = vim.fn.stdpath('config')})" },
53+
{ icon = "", key = "d", desc = "Dotfiles", action = ":lua Snacks.dashboard.pick('files', {dirs = {'~/repos/dotfiles', '~/repos/dotfiles-private'}})" },
5354
{ icon = "󰁯 ", key = "s", desc = "Restore Session", section = "session" },
5455
{ icon = "󰦛 ", key = "S", desc = "Restore Last Session", action = function() require("persistence").load({ last = true }) end },
5556
{ icon = "󰒲 ", key = "l", desc = "Lazy", action = ":Lazy", enabled = package.loaded.lazy ~= nil },

0 commit comments

Comments
 (0)