diff --git a/lua/markview/keymaps.lua b/lua/markview/keymaps.lua index 119f014..aa9aed0 100644 --- a/lua/markview/keymaps.lua +++ b/lua/markview/keymaps.lua @@ -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("")) + + if def_err then + vim.print("[ Markview.nvim ] : Failed to open: " .. vim.fn.expand("")) + end + + if def_cmd then + def_cmd:wait(); + end end, }) end