aboutsummaryrefslogtreecommitdiff
path: root/lua/muwiki/files.lua
diff options
context:
space:
mode:
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