aboutsummaryrefslogtreecommitdiff
path: root/lua/denote/init.lua
diff options
context:
space:
mode:
authorHumanEntity <human_entity@icloud.com>2023-12-24 23:07:17 +0100
committerHumanEntity <human_entity@icloud.com>2023-12-24 23:07:17 +0100
commit2b2f7f954a8ca24acde44e4e4497b27775ed83b9 (patch)
tree4779af880f7f9a90e300babe2367ab3f255449dd /lua/denote/init.lua
parent03f4e3bf7ac2d0a63fd3bc75395534e1a0cf9c21 (diff)
downloadsimple-denote.nvim-2b2f7f954a8ca24acde44e4e4497b27775ed83b9.tar.gz
Added some docs
Diffstat (limited to 'lua/denote/init.lua')
-rw-r--r--lua/denote/init.lua17
1 files changed, 9 insertions, 8 deletions
diff --git a/lua/denote/init.lua b/lua/denote/init.lua
index 18f57c1..814653f 100644
--- a/lua/denote/init.lua
+++ b/lua/denote/init.lua
@@ -1,13 +1,13 @@
local M = {}
local U = require("denote.util")
-local function splitlines(str)
- local result = {}
- for line in string.gmatch(str .. "\n", "(.-)\n") do
- table.insert(result, line)
- end
- return result
-end
+-- local function splitlines(str)
+-- local result = {}
+-- for line in string.gmatch(str .. "\n", "(.-)\n") do
+-- table.insert(result, line)
+-- end
+-- return result
+-- end
local function splitspace(str)
local chunks = {}
@@ -57,7 +57,7 @@ function M.search()
local status = U.search(date, name, function(input)
if input then
- vim.cmd("e " .. U.config.vault_dir .. "/" .. input)
+ vim.cmd("e " .. U.config.vault.dir .. "/" .. input)
end
if date then
print(date.year, " ", date.month, " ", date.day)
@@ -75,6 +75,7 @@ function M.search()
end
end
+---@param config DenoteConfig
function M.setup(config)
if config then
U.config = config