redve-dev / CommitReminder

5 stars 2 forks source link

The notification disappears very fast (1ms maybe) #15

Open GuDex-Dev opened 2 months ago

GuDex-Dev commented 2 months ago

When I save, the notification appears but immediately disappears.

I'm using LazyVim

Config: (plugins/git-reminder.lua)

return {
  {
    "redve-dev/neovim-git-reminder",
    dependencies = {
      "rcarriga/nvim-notify",
    },
    config = function()
      require("CommitReminder").setup({
        delay = 5, -- Delay in seconds before next warning appears.
        required_changes = 1, -- Number of lines of code that can change before the warnings appear.
        remind_on_save_only = true, -- Plugin will prompt you only when you save your file.
      })
    end,
  },
}
redvedev commented 1 day ago

It's probably independent from my plugin. The notification is related to this line of code only require("notify")(communicate, vim.log.levels.WARN, {title="Git Reminder", timeout=delay}) I think it might be something in nvim-notify plugin.

Perhaps it's something related to other setting in LazyVim