diff options
| author | moxie <moxie@3kgcat.fi> | 2026-03-14 04:28:05 +0200 |
|---|---|---|
| committer | moxie <moxie@3kgcat.fi> | 2026-03-14 04:28:05 +0200 |
| commit | 3461be4d2d880293c92bc7b4119ba53289ef03cc (patch) | |
| tree | 8f642fbf468779dfce16b6339d6d86acc8b8f6f5 /lua/muwiki/links/creation.lua | |
| parent | d4e100dd5f84d77b3dd16af2d7f2590a8b2bd030 (diff) | |
refactor: simplify wiki discovery functions
Diffstat (limited to 'lua/muwiki/links/creation.lua')
| -rw-r--r-- | lua/muwiki/links/creation.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/muwiki/links/creation.lua b/lua/muwiki/links/creation.lua index 0b31b10..81c45a6 100644 --- a/lua/muwiki/links/creation.lua +++ b/lua/muwiki/links/creation.lua @@ -52,7 +52,7 @@ function M.create_link() vim.api.nvim_buf_set_text(0, start_row, start_col, end_row, end_col, { link_text }) vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes('<Esc>', true, false, true), 'n', false) - local wiki_root = config.get_wiki_root_for_file(vim.api.nvim_buf_get_name(0)) + local wiki_root = config.wiki_root(0) if not wiki_root then vim.notify('Not in a wiki buffer', vim.log.levels.ERROR) return |
