diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2021-12-05 22:56:04 -0500 |
---|---|---|
committer | jgmdev <jgmdev@gmail.com> | 2022-05-22 13:02:00 -0400 |
commit | 3fcf065be6387c5bb38a46924f5ea1a7bb17850d (patch) | |
tree | 19b3c571c7e1beae325049e56e3df12a0a647637 /plugins/autosave.lua | |
parent | c569b3b3697c1656c78ec4b4d233d4ed78fa898a (diff) | |
download | lite-xl-plugins-3fcf065be6387c5bb38a46924f5ea1a7bb17850d.tar.gz lite-xl-plugins-3fcf065be6387c5bb38a46924f5ea1a7bb17850d.zip |
Appropriately merged config hashes.
Diffstat (limited to 'plugins/autosave.lua')
-rw-r--r-- | plugins/autosave.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/autosave.lua b/plugins/autosave.lua index 8c79e8d..34d2ad6 100644 --- a/plugins/autosave.lua +++ b/plugins/autosave.lua @@ -3,13 +3,14 @@ local core = require "core" local config = require "core.config" local Doc = require "core.doc" local command = require "core.command" +local common = require "core.common" -- this is used to detect the wait time local last_keypress = os.time() -- this exists so that we don't end up with multiple copies of the loop running at once local looping = false local on_text_change = Doc.on_text_change -- the approximate amount of time, in seconds, that it takes to trigger an autosave -config.plugins.autosave = { timeout = 1 } +config.plugins.autosave = common.merge({ timeout = 1 }, config.plugins.autosave) local function loop_for_save() |