Replies: 1 comment 3 replies
-
I am afraid, this is not possible to the extent you describe. 'mini.notify' module is meant to show on-demand and LSP notifications. Overriding built-in notifications is out of scope of 'mini.notify', as this is still not an easy to implement and maintain functionality. That said, you can mimic this behavior by creating an autocommand which gets triggered on every buffer write: vim.api.nvim_create_autocmd('BufWritePost', {
callback = function(args)
local path = vim.api.nvim_buf_get_name(args.buf)
if path ~= '' then path = vim.fn.fnamemodify(path, ':~:.') end
-- Assumes `vim.notify()` overridden by 'mini.notify'
vim.notify('Saved ' .. vim.inspect(path))
end,
}) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Previously I used to use
folke/noice.nvim
which used to completely remove other messages and redirect them to send notification . It is possible to send notification usingmini.notify
?For example I'd like to remove the following message and instead send notification?
Beta Was this translation helpful? Give feedback.
All reactions