Merge pull request #9 from refractalize/better-events-default

Better events default
This commit is contained in:
Pocco81
2021-07-18 19:22:47 -05:00
committed by GitHub
4 changed files with 18 additions and 20 deletions

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 = {},
@@ -86,7 +86,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 = {},
@@ -110,7 +110,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 = {},