]> git.rmz.io Git - dotfiles.git/blobdiff - nvim/lua/plugins/snacks.lua
lazyvim: absorb snacks.vim init config
[dotfiles.git] / nvim / lua / plugins / snacks.lua
diff --git a/nvim/lua/plugins/snacks.lua b/nvim/lua/plugins/snacks.lua
new file mode 100644 (file)
index 0000000..ae02a9b
--- /dev/null
@@ -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,
+  }
+}