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/datetimestamps.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/datetimestamps.lua') diff --git a/plugins/datetimestamps.lua b/plugins/datetimestamps.lua index c08547f..bd208f7 100644 --- a/plugins/datetimestamps.lua +++ b/plugins/datetimestamps.lua @@ -2,6 +2,7 @@ local core = require "core" local config = require "core.config" local command = require "core.command" +local common = require "core.common" --[[ Date and time format placeholders @@ -25,11 +26,11 @@ from https://www.lua.org/pil/22.1.html %y two-digit year (98) [00-99] %% the character `%ยด --]] -config.plugins.datetimestamps = { +config.plugins.datetimestamps = common.merge({ format_datestamp = "%Y%m%d" format_datetimestamp = "%Y%m%d_%H%M%S" format_timestamp = "%H%M%S" -} +}, config.plugins.datetimestamps) local function datestamp() local sOut = os.date(config.plugins.datetimestamps.format_datestamp) -- cgit v1.2.3