GitHub

notify.nvim is an notification framework plugin for neovim.

Run Tests GitHub License GitHub Issues or Pull Requests GitHub commit activity GitHub Release luarocks

Installation

Using nvim-plug:

require('plug').add({
  {
    'wsdjeg/notify.nvim',
    config = function()
      require('notify').setup({})
    end,
  },
})

Using luarocks

luarocks install notify.nvim

Setup

require('notify').setup({
  easing_func = 'linear',
  timeout = 3000,
})

Usage

local nt = require('notify')
--- notify single message
nt.notify('normal message')
--- notify multiple lines message
nt.notify('line1\nline2\nline3')
-- which is same as
nt.notify({ 'line1', 'line2', 'line3' })
-- specific notify message highlight
nt.notify('warn message', 'WarningMsg')

vim.notify

Use vim.notify with this plugin:

vim.notify = function(msg, level, opt)
    require('notify').notify(msg)
end

Picker source

This plugin also provides a notify source for picker.nvim.

:Picker notify

Self-Promotion

Like this plugin? Star the repository on GitHub.

Love this plugin? Follow me on GitHub.

License

This project is licensed under the GPL-3.0 License.

Read the original on github.com ↗