Skip to content

Commit

Permalink
fix: Added the ability to open <cfile> links under cursor
Browse files Browse the repository at this point in the history
Ref: #97
  • Loading branch information
OXY2DEV committed Aug 10, 2024
1 parent d54039e commit 7f4639a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lua/markview/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,27 @@ keymaps.createKeymap = function (buffer)

if err then
vim.print("[ Markview.nvim ] : Failed to open: " .. link.address)
break;
end

if cmd then
cmd:wait();
break;
end


::continue::
end

local def_cmd, def_err = vim.ui.open(vim.fn.expand("<cfile>"))

if def_err then
vim.print("[ Markview.nvim ] : Failed to open: " .. vim.fn.expand("<cfile>"))
end

if def_cmd then
def_cmd:wait();
end
end,
})
end
Expand Down

0 comments on commit 7f4639a

Please sign in to comment.