An open API service indexing awesome lists of open source software.

https://github.com/wsdjeg/notify.nvim

notification framework plugin for neovim
https://github.com/wsdjeg/notify.nvim

neovim-plugin

Last synced: 25 days ago
JSON representation

notification framework plugin for neovim

Awesome Lists containing this project

README

        

# notify.nvim

`notify.nvim` is an notification framework plugin for neovim.

* [Installation](#installation)
* [Setup](#setup)
* [Usage](#usage)
* [`vim.notify`](#vimnotify)
* [Self-Promotion](#self-promotion)
* [License](#license)

## Installation

Using [nvim-plug](https://github.com/wsdjeg/nvim-plug):

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

## Setup

```lua
require('notify').setup({
easing_func = 'linear',
timeout = 3000,
borderchars = { '─', '│', '─', '│', '╭', '╮', '╯', '╰' },
})
```

## Usage

```lua
local nt = require('notify')

nt.notify('normal message')
nt.notify('warn message', 'WarningMsg')
```

## `vim.notify`

Use `vim.notify` with this plugin:

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

## Self-Promotion

Like this plugin? Star the repository on
GitHub.

Love this plugin? Follow [me](https://wsdjeg.net/) on
[GitHub](https://github.com/wsdjeg) and
[Twitter](http://twitter.com/wsdtty).

## License

This project is licensed under the GPL-3.0 License.