feat(gitbrowse): opts.notify

This commit is contained in:
Folke Lemaitre 2024-12-02 10:24:19 +01:00
parent 243655796e
commit a856952ab2
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -188,7 +188,7 @@ function M._open(opts)
local function open(remote)
if remote then
if opts.notify then
if opts.notify ~= false then
Snacks.notify(("Opening [%s](%s)"):format(remote.name, remote.url), { title = "Git Browse" })
end
opts.open(remote.url)