diff options
| author | moxie <moxie@3kgcat.fi> | 2026-03-15 12:54:46 +0200 |
|---|---|---|
| committer | moxie <moxie@3kgcat.fi> | 2026-03-15 12:54:46 +0200 |
| commit | be3794da7602a78aec527750986c05d5bc8bd930 (patch) | |
| tree | dac6d005c5239bc0879cf411461199563658f603 /lua | |
| parent | 4f4730f09a08630c1c474caf1e5b2d94980aa1b9 (diff) | |
refactor(links): simplify get_wiki_root function name
Diffstat (limited to 'lua')
| -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 |
