• Stars
    star
    190
  • Rank 203,739 (Top 5 %)
  • Language
    Lua
  • License
    BSD 3-Clause "New...
  • Created over 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Non-intrusive notification system for neovim

notifier.nvim non-intrusive notification system for neovim

Showcase

Setup

Using packer.nvim:

use {
  "vigoux/notifier.nvim",
  config = function()
    require'notifier'.setup {
    -- You configuration here
    }
  end
}

The default configuration is:

{
  ignore_messages = {}, -- Ignore message from LSP servers with this name
  status_width = something, -- COmputed using 'columns' and 'textwidth'
  components = {  -- Order of the components to draw from top to bottom (first nvim notifications, then lsp)
    "nvim",  -- Nvim notifications (vim.notify and such)
    "lsp"  -- LSP status updates
  },
  notify = {
    clear_time = 5000, -- Time in milliseconds before removing a vim.notify notification, 0 to make them sticky
    min_level = vim.log.levels.INFO, -- Minimum log level to print the notification
  },
  component_name_recall = false, -- Whether to prefix the title of the notification by the component name
  zindex = 50, -- The zindex to use for the floating window. Note that changing this value may cause visual bugs with other windows overlapping the notifier window.
}

This plugin provides some commands:

:NotifierClear   " Clear the vim.notify items
:NotifierReplay  " Replay all vim.notify items
:NotifierReplay!  " Replay all vim.notify items to the quickfix list

This plugin defines multiple highlight groups that you can configure:

  • NotifierTitle: the title of the notification (lsp:.. and nvim)
  • NotifierIcon: Icon of the notification (if any)
  • NotifierContent: the content of the notification
  • NotifierContentDim: dimmed content of the notification

vim.notify options

This plugin supports two options for vim.notify:

title: string -- The title for this notification
icon: string -- The icon for this notification

Acknowledgement

Heavily inspired by fidget.nvim

TODO

  • Handle LSP progress
  • Hook into vim.notify and friends
    • Allow to customize log levels
  • When out, hook into ui_attach to route more messages from nvim
  • Add docs for status.push and status.pop

More Repositories

1

architext.nvim

🚀 Structural editing powered by treesitter
Lua
143
star
2

LanguageTool.nvim

An asynchronous grammar checker for Neovim using LanguageTool
Vim Script
77
star
3

tree-sitter-viml

Tree-sitter parser for VimL
JavaScript
74
star
4

ltex-ls.nvim

Enhanced integration of ltex-ls for neovim
Lua
43
star
5

complementree.nvim

Tree-sitter powered syntax-aware completion framework.
Lua
43
star
6

oak

A calming vim/neovim colorscheme
Vim Script
34
star
7

azy.nvim

Simple and fast fuzzy finder for neovim
Lua
29
star
8

templar.nvim

A dead simple template manager for neovim written in lua
Lua
25
star
9

treesitter-context.nvim

A context.vim clone powered by treesitter.
Lua
18
star
10

zest

Rust
13
star
11

ratatoskr.nvim

Lua
12
star
12

tree-sitter-fuzz-action

Shell
10
star
13

tree-sitter-diff

A tree-sitter parser for diff files
C
7
star
14

infer.nvim

Read an analyse infer stack traces within neovim
Lua
6
star
15

mem.nvim

A simple TODO management tool for NeoVim
Lua
5
star
16

vigoux

A readme about me !
3
star
17

redict

A TUI and library to work with DICT servers.
Rust
2
star
18

tabbed

My personnal build of suckless tabbed.
C
2
star
19

tree-sitter-mem

A Tree-sitter parser for my TODO markup language
C
2
star
20

dwm

Personnal fork of dwm
C
2
star
21

proofreader.nvim

[WIP] Proof reading plugin for Neovim powered by LanguageTool and Tree-Sitter
Lua
2
star
22

mandelbrust

Multithreaded mandelbrot image generator written in Rust
Rust
1
star
23

slstatus

Personnal build of slstatus
C
1
star
24

slock

My personnal build of suckless slock
C
1
star
25

st

Personal build of the suckless terminal
C
1
star
26

marvim-bot-test

Test repo for the marvim bot
1
star
27

dmenu

C
1
star
28

CALOA

CALOA project
Python
1
star