From 9d234efbd49869887c8337b440e86e0215fa70f8 Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 21 Oct 2021 23:03:15 +0800 Subject: [PATCH] disable autosave for plugins.lua --- lua/config/autosave.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/config/autosave.lua b/lua/config/autosave.lua index 7089305..d290e7f 100644 --- a/lua/config/autosave.lua +++ b/lua/config/autosave.lua @@ -4,7 +4,7 @@ require("autosave").setup({ events = { "InsertLeave", "TextChanged" }, conditions = { exists = true, - filename_is_not = {}, + filename_is_not = {"plugins.lua"}, filetype_is_not = {}, modifiable = true, },