From 3461be4d2d880293c92bc7b4119ba53289ef03cc Mon Sep 17 00:00:00 2001 From: moxie Date: Sat, 14 Mar 2026 04:28:05 +0200 Subject: refactor: simplify wiki discovery functions --- lua/muwiki/files.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/muwiki/files.lua') 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 -- cgit v1.2.3