]> git.rmz.io Git - dotfiles.git/blobdiff - nvim/lua/plugins/snacks.lua
nvim: disable snacks scroll animation
[dotfiles.git] / nvim / lua / plugins / snacks.lua
index 9a6d2feaa1275e2412b7a2f7a36744748de9f95f..2c7f6a87d16507a370ce4d5d1726f4746a6de19a 100644 (file)
@@ -19,7 +19,12 @@ 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 = {
@@ -54,10 +59,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)
+      { "<leader>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" },
+      { "<leader>un", function() Snacks.notifier.hide() end, desc = "Dismiss All Notifications" },
+    },
   }
 }