Use print instead of vim.cmd('echo ...')
parent
47f625593d
commit
e42005686b
|
@ -53,7 +53,7 @@ end
|
|||
-- Prints current branches PR url (not saved to :messages)
|
||||
-- Makes it easy to use terminal for opening url on click
|
||||
function M.print_pr_url(...)
|
||||
vim.cmd('echo "' .. get_pr_url(...) .. '"')
|
||||
print(get_pr_url(...))
|
||||
end
|
||||
|
||||
-- Copies current branches PR url to system clipboard
|
||||
|
|
|
@ -67,9 +67,6 @@ local function popup_and_run(type)
|
|||
end
|
||||
|
||||
local function run()
|
||||
print(vim.inspect(eval_functions))
|
||||
print(vim.inspect(eval_functions[type]))
|
||||
print(vim.inspect(eval_functions[type](win.bufnr)))
|
||||
local st, r = eval_functions[type](win.bufnr)
|
||||
if st == false then
|
||||
vim.notify("Execution failed: \n" .. r)
|
||||
|
|
Loading…
Reference in New Issue