X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/841d0dfd1080c6726d4f04614b8371ea6ad490b3..fd2e16fc92dd7a33908ceff1e31f03e05a78fda9:/nvim/lua/plugins/snacks.lua diff --git a/nvim/lua/plugins/snacks.lua b/nvim/lua/plugins/snacks.lua index 9a6d2fe..89eec46 100644 --- a/nvim/lua/plugins/snacks.lua +++ b/nvim/lua/plugins/snacks.lua @@ -19,22 +19,24 @@ return { }, opts = { bigfile = { enabled = true }, - quickfile = { enabled = true }, + indent = { enabled = true }, + input = { enabled = true }, -- NOTE: seems unecessary + quickfile = { enabled = true }, -- TODO: review if needed + scope = { enabled = true }, + scroll = { enabled = false }, -- fuck this! + statuscolumn = { enabled = true }, terminal = { win = { keys = { - nav_h = { "", term_nav("h"), desc = "Go to Left Window", expr = true, mode = "t" }, + nav_h = { "", term_nav("W"), desc = "Go to Prev Window", expr = true, mode = "t" }, nav_j = { "", term_nav("j"), desc = "Go to Lower Window", expr = true, mode = "t" }, nav_k = { "", term_nav("k"), desc = "Go to Upper Window", expr = true, mode = "t" }, - nav_l = { "", term_nav("l"), desc = "Go to Right Window", expr = true, mode = "t" }, + nav_l = { "", term_nav("w"), desc = "Go to Next Window", expr = true, mode = "t" }, }, }, }, dashboard = { preset = { - pick = function(cmd, opts) - return LazyVim.pick(cmd, opts)() - end, -- TODO: replace header header = [[ ██╗ █████╗ ██╗ ██╗███████╗██╗ ██╗██╗ ██╗██╗███╗ ███╗ Z @@ -54,10 +56,26 @@ return { { 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" }, }, }, }, }, + }, + { "folke/snacks.nvim", + opts = { + notifier = { enabled = true }, + }, + -- stylua: ignore + keys = { + -- TODO: review after picking picker (ha) + { "n", function() + if Snacks.config.picker and Snacks.config.picker.enabled then + Snacks.picker.notifications() + else + Snacks.notifier.show_history() + end + end, desc = "Notification History" }, + { "un", function() Snacks.notifier.hide() end, desc = "Dismiss All Notifications" }, + }, } }