From ef5f1dfc5f755a134f68360880c8e5ac57cb04e1 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Tue, 17 Jun 2025 22:38:32 -0700 Subject: [PATCH] Fix auto-save plugin init --- .config/nvim/lua/plugins/history.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/nvim/lua/plugins/history.lua b/.config/nvim/lua/plugins/history.lua index 1c50b72..eb2567a 100644 --- a/.config/nvim/lua/plugins/history.lua +++ b/.config/nvim/lua/plugins/history.lua @@ -8,6 +8,13 @@ return { }, { "pocco81/auto-save.nvim", + event = { "InsertLeave", "TextChanged" }, + config = function() + require("auto-save").setup({ + enabled = true, + trigger_events = { "InsertLeave", "TextChanged" }, + }) + end, keys = { { "as", "ASToggle", desc = "Toggle Auto Save" }, },