~tomleb/repo-url.nvim

f3730c52f79feb51ea66357165676a28c35a448e — Tom Lebreux 7 months ago a894a94
Add notification for clipboard and open
1 files changed, 2 insertions(+), 0 deletions(-)

M lua/repo-url/init.lua
M lua/repo-url/init.lua => lua/repo-url/init.lua +2 -0
@@ 355,10 355,12 @@ end

local clipboard_url = function(url)
  vim.fn.setreg('+', url)
  vim.print(string.format("Copied URL '%s' to clipboard", url))
end

local open_url = function(url)
  vim.fn.system('xdg-open ' .. url)
  vim.print(string.format("Opened URL '%s' in the browser", url))
end

local notify_error = function(formatstring, ...)