Better events default

This commit is contained in:
Tim Macfarlane
2021-07-17 10:04:15 +02:00
parent de73572d4e
commit 86adb4ef60
4 changed files with 9 additions and 15 deletions
+3 -3
View File
@@ -63,7 +63,7 @@ As it's stated in the TL;DR, there are already some sane defaults that you may l
```lua
enabled = true,
execution_message = "AutoSave: saved at " .. vim.fn.strftime("%H:%M:%S"),
events = {"InsertLeave"},
events = {"InsertLeave", "TextChanged"},
conditions = {
exists = true,
filetype_is_not = {},
@@ -85,7 +85,7 @@ autosave.setup(
{
enabled = true,
execution_message = "AutoSave: saved at " .. vim.fn.strftime("%H:%M:%S"),
events = {"InsertLeave"},
events = {"InsertLeave", "TextChanged"},
conditions = {
exists = true,
filetype_is_not = {},
@@ -108,7 +108,7 @@ autosave.setup(
{
enabled = true,
execution_message = "AutoSave: saved at " .. vim.fn.strftime("%H:%M:%S"),
events = {"InsertLeave"},
events = {"InsertLeave", "TextChanged"},
conditions = {
exists = true,
filetype_is_not = {},