diff options
| author | HumanEntity <human_entity@icloud.com> | 2023-12-25 12:54:37 +0100 |
|---|---|---|
| committer | HumanEntity <human_entity@icloud.com> | 2023-12-25 12:54:37 +0100 |
| commit | 4997cc9704883b7833372386b71ddc8bbb177a56 (patch) | |
| tree | d746e294b74a0a2dbd8a4cfec6e66369b0c6810f /lua/denote/api.lua | |
| parent | 9fb27f9c4f8258662b5642d0768c60f4b870bca2 (diff) | |
| download | simple-denote.nvim-4997cc9704883b7833372386b71ddc8bbb177a56.tar.gz | |
Little restructurization and cmd update
Diffstat (limited to 'lua/denote/api.lua')
| -rw-r--r-- | lua/denote/api.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/denote/api.lua b/lua/denote/api.lua index b01cdfa..fd83f5b 100644 --- a/lua/denote/api.lua +++ b/lua/denote/api.lua @@ -1,6 +1,7 @@ local M = {} local internal = require("denote.internal") local util = require("denote.util") +local config = require("denote.config") function M.note() local name = "" @@ -46,7 +47,7 @@ function M.search() local status = internal.search(date, name, function(input) if input then - vim.cmd("e " .. internal.config.vault.dir .. "/" .. input) + vim.cmd("e " .. config.vault.dir .. "/" .. input) end if date then print(date.year, " ", date.month, " ", date.day) |
