Awesome
nvim-lsp-notify
NVIM plugin to notify about LSP processes
Motivation
The motivation was to address the uncertainty that can sometimes accompany using LSP. I wanted to create a solution that would provide better visibility into the LSP's processes.
Examples
Optional dependencies
Installation
Using packer.nvim
Basic setup will use vim.notify()
for notifications:
use {
'mrded/nvim-lsp-notify',
config = function()
require('lsp-notify').setup({})
end
}
You can pass notify
function, for example from nvim-notify:
use {
'mrded/nvim-lsp-notify',
requires = { 'rcarriga/nvim-notify' },
config = function()
require('lsp-notify').setup({
notify = require('notify'),
})
end
}
Or icons
to customize icons:
use {
'mrded/nvim-lsp-notify',
requires = { 'rcarriga/nvim-notify' },
config = function()
require('lsp-notify').setup({
icons = {
spinner = { '|', '/', '-', '\\' }, -- `= false` to disable only this icon
done = '!' -- `= false` to disable only this icon
}
})
end
}
Or icons = false
to disable them completely:
use {
'mrded/nvim-lsp-notify',
requires = { 'rcarriga/nvim-notify' },
config = function()
require('lsp-notify').setup({
icons = false
})
end
}
Credits
I am deeply grateful to the creators of nvim-notify for their invaluable contributions. Their work, specifically the implementation of LSP notifications in their usage recipes, served as the foundation for this project, which has been developed into a convenient, standalone module.