You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 icondone='!' -- `= 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.