Use print instead of vim.cmd('echo ...')

main
Ensar Sarajčić 2022-05-05 21:08:20 +02:00
parent 47f625593d
commit e42005686b
2 changed files with 1 additions and 4 deletions

View File

@ -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

View File

@ -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)