nvim-lua / plenary.nvim

plenary: full; complete; entire; absolute; unqualified. All the lua functions I don't want to write twice.
MIT License
2.69k stars 284 forks source link

Use `vim.notify` as default console log #578

Open lettertwo opened 4 months ago

lettertwo commented 4 months ago

[vim.notify](https://neovim.io/doc/user/lua.html#vim.notify()) is arguably a more ergonomic way of showing level-filtered messages to the user, and it also allows for custom providers and handling, like nvim-notify or noice , to integrate messages from plenary.log.

I'm not sure if it's a bad idea to make this the new default; it could certainly be a breaking change, but i think that the intention of an author who has not overridden the default config probably aligns with the behavior of vim.notify.

Fixes #540