aboutsummaryrefslogtreecommitdiff
path: root/lua/muwiki/files.lua
diff options
context:
space:
mode:
authormoxie <moxie@3kgcat.fi>2026-03-14 04:28:05 +0200
committermoxie <moxie@3kgcat.fi>2026-03-14 04:28:05 +0200
commit3461be4d2d880293c92bc7b4119ba53289ef03cc (patch)
tree8f642fbf468779dfce16b6339d6d86acc8b8f6f5 /lua/muwiki/files.lua
parentd4e100dd5f84d77b3dd16af2d7f2590a8b2bd030 (diff)
refactor: simplify wiki discovery functions
Diffstat (limited to 'lua/muwiki/files.lua')
-rw-r--r--lua/muwiki/files.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/muwiki/files.lua b/lua/muwiki/files.lua
index 851feb4..6ec2bc2 100644
--- a/lua/muwiki/files.lua
+++ b/lua/muwiki/files.lua
@@ -26,7 +26,7 @@ function M.open_external(url)
end
function M.open_index(name)
- local wiki_path = config.get_wiki_path(name)
+ local wiki_path = config.wiki_path(name)
if not wiki_path then
return
end
@@ -70,7 +70,7 @@ function M.open_wiki_file(filepath)
local exists = fs.file_exists(filepath)
if not exists and config.options.create_missing_dirs then
- local wiki_root = config.get_wiki_root_for_file(vim.api.nvim_buf_get_name(0))
+ local wiki_root = config.wiki_root(0)
if wiki_root then
local mode = config.options.create_missing_dirs