Skip to content
Discussion options

You must be logged in to vote
vim.api.nvim_create_autocmd('User', {
  pattern = 'LazyDone',
  group = vim.api.nvim_create_augroup('filter_notify', { clear = true }),
  callback = function()
    local notiy = vim.notify
    vim.notify = function(msg, lvl, opts) ---@diagnostic disable-line: duplicate-set-field
      if msg:match 'Terminal %*%*cmd%*%* .* failed with code' then
      else
        notiy(msg, lvl, opts)
      end
    end
  end,
})

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@almostSouji
Comment options

@drowning-cat
Comment options

@almostSouji
Comment options

@drowning-cat
Comment options

Answer selected by almostSouji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants