We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Open git link in browser in Windows 10.
To Reproduce
Use Lazy.nvim to install gitlinker.nvim, here's part of lazy's plugins.lua:
plugins.lua
{ 'ruifm/gitlinker.nvim', lazy = true, dependencies = { 'nvim-lua/plenary.nvim' }, config = function() require('repo/ruifm/gitlinker-nvim/config') end, keys = require('repo/ruifm/gitlinker-nvim/keys') },
Here's the lua/repo/ruifm/gitlinker-nvim/config:
lua/repo/ruifm/gitlinker-nvim/config
require("gitlinker").setup({ mappings = "<leader>gL", })
Here's the lua/repo/ruifm/gitlinker-nvim/keys:
lua/repo/ruifm/gitlinker-nvim/keys
local map_lazy = require("conf/keymap").map_lazy local M = { { "<leader>gL", nil, { "n", "v" }, desc = "Copy git link to clipboard" }, { "<leader>gl", '<cmd>lua require"gitlinker".get_buf_range_url("n", {action_callback = require"gitlinker.actions".open_in_browser})<cr>', 'n', { silent = true, desc = "Open git link in browser" }, { "<leader>gl", '<cmd>lua require"gitlinker".get_buf_range_url("v", {action_callback = require"gitlinker.actions".open_in_browser})<cr>',, 'v', { silent = true, desc = "Open git link in browser" }, } return M
There's an error xdg-open throwed from plenary.nvim.
xdg-open
Expected behavior Correctly open git link in browser.
Screenshots
System (please complete the following information):
neovim --version
git --version
Additional context N/A
The text was updated successfully, but these errors were encountered:
Submit a PR #76 , try to fix this issue using explorer command in Windows.
explorer
Sorry, something went wrong.
mappings = nil
fixed in https://github.com/linrongbin16/gitlinker.nvim
fix(path): resolve symlink in Windows (ruifm#75)
b292a4f
* fix(logger): remove 'error!' prefix * fix(git): fix command line running cwd * refactor(util): rewrite path relative, normalize util functions * fix(path): fix symlink resolve in Windows * refactor(lint): fix typecheck * refactor(lint): fix typecheck * test(spawn): fix test cases * fix(spawn): set 'cwd' options
ruifm
No branches or pull requests
Describe the bug
Open git link in browser in Windows 10.
To Reproduce
Use Lazy.nvim to install gitlinker.nvim, here's part of lazy's
plugins.lua
:Here's the
lua/repo/ruifm/gitlinker-nvim/config
:Here's the
lua/repo/ruifm/gitlinker-nvim/keys
:There's an error
xdg-open
throwed from plenary.nvim.Expected behavior
Correctly open git link in browser.
Screenshots
System (please complete the following information):
neovim --version
: NVIM v0.9.0-dev-991+g44da6a56b (develop build in 2023-02-18)git --version
: git version 2.38.1.windows.1Additional context
N/A
The text was updated successfully, but these errors were encountered: