don't load config until setup() is called
This commit is contained in:
1 file changed
+3
-3
@@ -1,8 +1,5 @@
|
|||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
-- load our default configuration
|
|
||||||
local config = require("thethethe.config")
|
|
||||||
|
|
||||||
-- load abbreviations.dict
|
-- load abbreviations.dict
|
||||||
local function load_abbreviations()
|
local function load_abbreviations()
|
||||||
-- load our dictionary string
|
-- load our dictionary string
|
||||||
@@ -25,6 +22,9 @@ end
|
|||||||
|
|
||||||
-- create our exported setup() function
|
-- create our exported setup() function
|
||||||
function M.setup(opts)
|
function M.setup(opts)
|
||||||
|
-- load our default configuration
|
||||||
|
local config = require("thethethe.config")
|
||||||
|
|
||||||
-- check for default overrides passed in
|
-- check for default overrides passed in
|
||||||
if opts then
|
if opts then
|
||||||
config.delay_ms = opts.delay_ms or config.delay_ms
|
config.delay_ms = opts.delay_ms or config.delay_ms
|
||||||
|
|||||||
Reference in new issue
Block a user