This plugin will remind you to commit your changes more often.
The plugin requires nvim-notify
use({
"redve-dev/neovim-git-reminder",
requires = {
'rcarriga/nvim-notify',
},
config = function()
require("CommitReminder").setup({})
end
})
require("CommitReminder").setup({
delay=5,
required_changes=20,
remind_on_save_only=true
})
delay - Delay in seconds before next warning appears.
required_changes - How many lines of code can change before the warnings appear.
remind_on_save_only - the plugin will prompt you only when you save your file.
If you want toggle the plugin off and on, run:
!lua require("CommitReminder").Toggle()