don't load config until setup() is called

This commit is contained in:
swaits committed 2023-10-20 20:53:06 -06:00
1 parent c00f1ae51e
commit f61e0a1419
1 file changed
+3 -3
+3 -3
View File
@@ -1,8 +1,5 @@
local M = {}
-- load our default configuration
local config = require("thethethe.config")
-- load abbreviations.dict
local function load_abbreviations()
-- load our dictionary string
@@ -25,6 +22,9 @@ end
-- create our exported setup() function
function M.setup(opts)
-- load our default configuration
local config = require("thethethe.config")
-- check for default overrides passed in
if opts then
config.delay_ms = opts.delay_ms or config.delay_ms