From 4f4730f09a08630c1c474caf1e5b2d94980aa1b9 Mon Sep 17 00:00:00 2001 From: moxie Date: Sun, 15 Mar 2026 10:49:19 +0200 Subject: chore: update readme/docs --- lua/muwiki/links.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lua') diff --git a/lua/muwiki/links.lua b/lua/muwiki/links.lua index 5bcdc68..90b9349 100644 --- a/lua/muwiki/links.lua +++ b/lua/muwiki/links.lua @@ -12,8 +12,6 @@ local function get_link_type(target) return 'wiki' end - - function M.get_link() local cursor = vim.api.nvim_win_get_cursor(0) @@ -76,7 +74,7 @@ function M.open_link() end if link.type == 'web' then - vim.system({'xdg-open', link.target}, {detach = true}) + vim.system({ 'xdg-open', link.target }, { detach = true }) return end @@ -88,7 +86,7 @@ function M.open_link() if link.type == 'file' then if vim.startswith(link.target, 'file://') then local file_path = utils.resolve(link.target, nil) - vim.system({'xdg-open', file_path}, {detach = true}) + vim.system({ 'xdg-open', file_path }, { detach = true }) else local ok, file_path = pcall(utils.resolve, link.target, wiki_root) if not ok then @@ -96,7 +94,7 @@ function M.open_link() return end - vim.system({'xdg-open', file_path}, {detach = true}) + vim.system({ 'xdg-open', file_path }, { detach = true }) end return end -- cgit v1.2.3