diff options
| author | DefaultGen <gravel.justness270@slmail.me> | 2024-06-01 22:35:39 -0400 |
|---|---|---|
| committer | DefaultGen <gravel.justness270@slmail.me> | 2024-06-01 22:35:39 -0400 |
| commit | bde89bcfe9ceb6d312a02d3361fb817c304544f6 (patch) | |
| tree | 104d9e2b83130001e373206ba9378bf07a0c0b13 /lua/denote/init.lua | |
| parent | 22818fd95f438f83d32f6e1d482c6c2ef58772a0 (diff) | |
| download | simple-denote.nvim-bde89bcfe9ceb6d312a02d3361fb817c304544f6.tar.gz | |
Initial commit
Diffstat (limited to 'lua/denote/init.lua')
| -rw-r--r-- | lua/denote/init.lua | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lua/denote/init.lua b/lua/denote/init.lua index 396486f..5e04418 100644 --- a/lua/denote/init.lua +++ b/lua/denote/init.lua @@ -1,14 +1,12 @@ -local M = { - api = require("denote.api"), - cmd = require("denote.cmd"), -} +local M = {} ----@param config DenoteConfig -function M.setup(config) - M.cmd.load_cmd() - if config then - M.config = config - end +local cmd = require("denote.cmd") +local config = require("denote.config") + +---@param options? table user configuration +function M.setup(options) + config.options = vim.tbl_deep_extend("force", config.defaults, options or {}) + cmd.load_cmd(config.options) end return M |
