From: Samir Benmendil Date: Sun, 9 Feb 2025 14:02:20 +0000 (+0000) Subject: lazyvim: absorb snacks.vim init config X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/e40788dc38ebea793179795290adf868c5b5feca lazyvim: absorb snacks.vim init config --- diff --git a/nvim/lua/plugins/init.lua b/nvim/lua/plugins/init.lua new file mode 100644 index 0000000..c21defb --- /dev/null +++ b/nvim/lua/plugins/init.lua @@ -0,0 +1,4 @@ +return { + { "folke/lazy.nvim", version = "*" }, + { "folke/snacks.nvim", priority = 1000, lazy = false }, +} diff --git a/nvim/lua/plugins/snacks.lua b/nvim/lua/plugins/snacks.lua new file mode 100644 index 0000000..ae02a9b --- /dev/null +++ b/nvim/lua/plugins/snacks.lua @@ -0,0 +1,14 @@ +return { + { "folke/snacks.nvim", + opts = {}, + config = function(_, opts) + local notify = vim.notify + require("snacks").setup(opts) + -- HACK: restore vim.notify after snacks setup and let noice.nvim take over + -- this is needed to have early notifications show up in noice history + if LazyVim.has("noice.nvim") then + vim.notify = notify + end + end, + } +}