From 573e24df9be5a17a4dda3e511c3ed65dcdfb0e59 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Fri, 29 Nov 2024 20:19:17 -0800 Subject: [PATCH] feat: Finish Snacks config --- nvim/lua/snacks-nvim.lua | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/nvim/lua/snacks-nvim.lua b/nvim/lua/snacks-nvim.lua index fc026fb..1a4245b 100644 --- a/nvim/lua/snacks-nvim.lua +++ b/nvim/lua/snacks-nvim.lua @@ -5,9 +5,30 @@ local lazyvim_root = require('lib.lazyvim.root') require('snacks').setup({ bigfile = { enabled = true }, - dashboard = { enabled = true }, + notifier = { enabled = true }, + quickfile = { enabled = true }, + statuscolumn = { enabled = true }, + words = { enabled = true }, }) +-- Debuggers -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +_G.dd = function(...) + Snacks.debug.inspect(...) +end + +_G.bt = function() + Snacks.debug.backtrace() +end + +vim.print = _G.dd + +-- Notifier -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +set({ 'n' }, 'un', function() + Snacks.notifier.hide() +end, { desc = 'Dismiss all notifications' }) + -- Buffers -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- set({ 'n' }, 'bd', function() Snacks.bufdelete()