diff options
Diffstat (limited to 'lua/muwiki')
| -rw-r--r-- | lua/muwiki/links.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/muwiki/links.lua b/lua/muwiki/links.lua index 90b9349..599ddb8 100644 --- a/lua/muwiki/links.lua +++ b/lua/muwiki/links.lua @@ -57,7 +57,7 @@ function M.get_link() } end -local function get_wiki_root_or_notify() +local function get_wiki_root() local wiki_root = utils.wiki_root(0) if not wiki_root then vim.notify('Not in a wiki buffer', vim.log.levels.ERROR) @@ -78,7 +78,7 @@ function M.open_link() return end - local wiki_root = get_wiki_root_or_notify() + local wiki_root = get_wiki_root() if not wiki_root then return end @@ -137,7 +137,7 @@ function M.open_with_menu(handlers, link) if vim.startswith(url, 'file://') then url = utils.resolve(url, nil) else - local wiki_root = get_wiki_root_or_notify() + local wiki_root = get_wiki_root() if wiki_root then url = utils.resolve(url, wiki_root) end |
