lazy.nvim icon indicating copy to clipboard operation
lazy.nvim copied to clipboard

bug: lazy.util.open hardcodes xdg-open

Open swsnr opened this issue 3 years ago • 0 comments

Did you check docs and existing issues?

  • [X] I have read all the lazy docs
  • [X] I have searched the existing issues of lazy
  • [X] I have searched the exsiting issues of the plugin I have a problem with

Neovim version (nvim -v)

0.8.1

Operating system/version

Linux

Describe the bug

lazy.util.open hard codes xdg-open, so K fails if xdg-open isn't present.

Naively, I'd have expected lazy to honour g:netrw_browsex_viewer, and was surprised to see that it doesn't. I checked the code to learn how to configure it, and saw that xdg-open was hardcoded.

Steps To Reproduce

  1. Uninstall xdg-open
  2. Press K anywhere in a Lazy window.

Expected Behavior

I'd have expected lazy to honour netrw or check g:netrw_browsex_viewer directly, or to provide an alternative option to change the command to open URLs.

Repro

No response

swsnr avatar Dec 30 '22 11:12 swsnr