From 3fcf065be6387c5bb38a46924f5ea1a7bb17850d Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 5 Dec 2021 22:56:04 -0500 Subject: Appropriately merged config hashes. --- plugins/autosave.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/autosave.lua') 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() -- cgit v1.2.3