🐛 fix(auto-save): fix auto-save triggers

Auto-save should be initialized on BufEnter rather than InsertEnter to cover edge cases like pasting without ever entering insert mode.

Fixes bug where auto-save plugin doesn't initialize if insert mode was never entered, despite the buffer being modified.
This commit is contained in:
2024-08-04 03:30:26 -04:00
parent 07f7707e67
commit 1b04fccdcf
+1 -1
View File
@@ -53,7 +53,7 @@ return {
}, },
{ -- Auto-save { -- Auto-save
"Pocco81/auto-save.nvim", "Pocco81/auto-save.nvim",
event = "InsertEnter", event = "BufEnter",
}, },
{ -- User is bored { -- User is bored
"mikesmithgh/ugbi", "mikesmithgh/ugbi",