notify.nvim is an notification framework plugin for neovim.
Using nvim-plug:
require('plug').add({
{
'wsdjeg/notify.nvim',
config = function()
require('notify').setup({})
end,
},
})Using luarocks
luarocks install notify.nvim
require('notify').setup({
easing_func = 'linear',
timeout = 3000,
})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')Use vim.notify with this plugin:
vim.notify = function(msg, level, opt)
require('notify').notify(msg)
endThis plugin also provides a notify source for picker.nvim.
:Picker notify
Like this plugin? Star the repository on GitHub.
Love this plugin? Follow me on GitHub.
This project is licensed under the GPL-3.0 License.