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 fidget = puk 'fidget'

fidget.setup {
  -- Options related to LSP progress subsystem
  progress = {
    suppress_on_insert = true, -- Suppress new messages while in insert mode
  },

  -- Options related to notification subsystem
  notification = {
    override_vim_notify = true, -- Automatically override vim.notify() with Fidget
  },
}

user_command.Notifications 'Show past notifications' (function() vim.cmd.Fidget 'history' end)