aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/muwiki.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/muwiki.txt b/doc/muwiki.txt
index 92750ae..02d6ced 100644
--- a/doc/muwiki.txt
+++ b/doc/muwiki.txt
@@ -256,13 +256,13 @@ Custom open handler using get_link()~ *muwiki-a
else
-- Open in Neovim for other file types
local utils = require('muwiki.utils')
- local file_path = utils.resolve(link.target, nil)
+ local file_path = utils.resolve(link.target)
vim.cmd('edit ' .. vim.fn.fnameescape(file_path))
end
else
-- Wiki link: open in Neovim
local utils = require('muwiki.utils')
- local file_path = utils.resolve(link.target, nil)
+ local file_path = utils.resolve(link.target)
vim.cmd('edit ' .. vim.fn.fnameescape(file_path))
end
end, { buffer = args.buf, desc = "Open link (custom handler)" })