Skip to content

JoseMM2002/snacks-nvim-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

snacks-nvim-notify

A small Neovim add-on that exposes your nvim-notify history through the snacks.nvim picker so you can search, preview, and reopen past notifications with ease.

Features

  • Adds the :SnacksNotifications command to launch a Snacks picker populated with past notifications from nvim-notify.
  • Provides rich list entries that include level, icon, category, time and truncated message for quick scanning.
  • Shows an inline preview within the picker and reopens a floating window with the full notification when you confirm a selection.
  • Applies level-aware highlighting to keep severity information clear while browsing.

Requirements

Installation

Using lazy.nvim:

{
  "JoseMM2002/snacks-nvim-notify",
  dependencies = { "folke/snacks.nvim", "rcarriga/nvim-notify" },
  config = function()
    require("snacks-nvim-notify").setup({
      width = 0.6,
      height = 0.5,
      border = "rounded",
      truncate_width = 80,
    })
  end,
},

Load Neovim and run :Lazy sync (or your plugin manager's equivalent) to install the dependencies.

Usage

After installation the plugin registers the :SnacksNotifications user command. Running it opens a Snacks picker where you can:

  1. Browse notifications with level-aware formatting.
  2. See an inline preview of the selected notification within the picker.
  3. Press <CR> to reopen the selected notification in a floating window. Close it with q or <Esc>.

The module exposes require("snacks-nvim-notify").setup(opts) if you need to extend the behaviour later on. You can also call require("snacks-nvim-notify").notifications_history() directly if you need to launch the picker programmatically. Currently all functionality works out of the box without passing options.

Demo

About

Notify picker for nvim-notify and snacks.picker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages