Open the current buffer on Bitbucket in your browser.
- No external Lua dependencies
- Works with SSH or HTTPS remotes
- Optional line or range selection anchors
- Neovim 0.8+ (uses built-in Lua API;
vim.ui.openused when available) gitavailable in PATH
Use your preferred plugin manager. Example (lazy.nvim):
{
"veracus/bitbucket-open.nvim",
config = function()
require("bitbucket_open").setup()
end,
}:BitbucketOpenopens the current file- Visual select lines and run
:'<,'>BitbucketOpento include line anchors - No selection means no
#linesfragment is added
require("bitbucket_open").setup({
remote = "origin",
host = "bitbucket.org",
branch = "auto", -- auto | HEAD | <branch-or-commit>
-- open_cmd = "open", -- or {"xdg-open"}
})- URL format:
https://<host>/<workspace>/<repo>/src/<ref>/<path> - SSH remotes like
git@bitbucket.org:workspace/repo.gitare supported
MIT
Run the minimal Lua test harness:
lua tests/run.luaThis uses a tiny custom runner (no external deps) and stubs Neovim APIs.