Files
scripts/nvim/lua/plugins/snacks.lua
T
adamfandClaude Fable 5 f2f5039433 Add nerd-dictation toggle, swap hyprsunset for gammastep, monitor layout
- Bind $mod+C to toggle nerd-dictation in hyprland and i3
- Replace hyprsunset with gammastep (added to packages.txt)
- Add nwg-displays monitor/workspace configs and DP-2 rotation
- Snacks keymaps picker on <leader>?, disable which-key default
- Document colors+base build system in CLAUDE.md

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-07 13:08:00 +01:00

45 lines
1.7 KiB
Lua

return {
{
"snacks.nvim",
keys = {
{
"<leader>?",
function()
Snacks.picker.keymaps()
end,
desc = "Search Keymaps",
mode = { "n", "x" },
},
},
opts = {
dashboard = {
preset = {
pick = function(cmd, opts)
return LazyVim.pick(cmd, opts)()
end,
header = [[
███████╗████████╗██████╗
██╔════╝╚══██╔══╝██╔══██╗
███████╗ ██║ ██████╔╝
╚════██║ ██║ ██╔═══╝
███████║ ██║ ██║
╚══════╝ ╚═╝ ╚═╝
]],
-- stylua: ignore
keys = {
{ icon = " ", key = "f", desc = "Find File", action = ":lua Snacks.dashboard.pick('files')" },
{ icon = " ", key = "n", desc = "New File", action = ":ene | startinsert" },
{ icon = " ", key = "g", desc = "Find Text", action = ":lua Snacks.dashboard.pick('live_grep')" },
{ icon = " ", key = "r", desc = "Recent Files", action = ":lua Snacks.dashboard.pick('oldfiles')" },
{ icon = " ", key = "c", desc = "Config", action = ":lua Snacks.dashboard.pick('files', {cwd = vim.fn.stdpath('config')})" },
{ icon = " ", key = "s", desc = "Restore Session", section = "session" },
{ icon = " ", key = "x", desc = "Lazy Extras", action = ":LazyExtras" },
{ icon = "󰒲 ", key = "l", desc = "Lazy", action = ":Lazy" },
{ icon = " ", key = "q", desc = "Quit", action = ":qa" },
},
},
},
},
},
}