Skip to content

stuckinsnow/alertty.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

alertty.nvim

A lightweight Neovim plugin that intercepts noice.nvim calls and displays notifications in a simple bottom-right float window.

Features

  • Intercepts all require("noice") calls
  • Displays notifications in a bottom-right floating window
  • Auto-dismisses after configurable timeout
  • Zero dependencies

Installation

lazy.nvim

{
  "stuckinsnow/alertty.nvim",
  priority = 10000,
  config = function()
    require("alertty").setup({
      timeout = 3000,  -- milliseconds
      width = 60,      -- max width
      border = "none", -- "none", "single", "double", "rounded"
    })
  end,
}

Configuration

Default options:

{
  timeout = 3000,
  width = 60,
  border = "none",
  position = "bottom_right",
  diagnostics_on_save_only = true, -- false to show diagnostics whenever out of insert mode
}

API

-- Show a notification
require("alertty").notify("Hello, world!")

-- Dismiss current notification
require("alertty").dismiss()

How it works

The plugin injects itself into package.loaded["noice"] before any other plugin can load noice, effectively replacing it with a minimal implementation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages