aboutsummaryrefslogtreecommitdiff
path: root/lua/denote/api.lua
diff options
context:
space:
mode:
authorHumanEntity <human_entity@icloud.com>2023-12-25 12:54:37 +0100
committerHumanEntity <human_entity@icloud.com>2023-12-25 12:54:37 +0100
commit4997cc9704883b7833372386b71ddc8bbb177a56 (patch)
treed746e294b74a0a2dbd8a4cfec6e66369b0c6810f /lua/denote/api.lua
parent9fb27f9c4f8258662b5642d0768c60f4b870bca2 (diff)
downloadsimple-denote.nvim-4997cc9704883b7833372386b71ddc8bbb177a56.tar.gz
Little restructurization and cmd update
Diffstat (limited to 'lua/denote/api.lua')
-rw-r--r--lua/denote/api.lua3
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)