repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim/lua/bugabinga/notifications.lua

Raw
local puk = require 'std.puk'
local user_command = require 'std.user_command'
local notify = puk 'mini.notify'

notify.setup {}
vim.notify = notify.make_notify {
  ERROR = { duration = 4242 },
  WARN = { duration = 3333 },
  INFO = { duration = 2222 },
}

user_command.Notifications 'Show past notifications' (
  function() notify.show_history() end
)