chrishrb / gx.nvim

Implementation of gx without the need of netrw
Apache License 2.0
186 stars 19 forks source link

Recommend lazy loading on `gx` when using `lazy.nvim` #35

Closed isak102 closed 5 months ago

isak102 commented 6 months ago

As far as I can tell, the only way to interact with this plugin is by the gx keymap. So this plugin really doesn't need to be loaded before a user presses gx. In the README however, lazy loading on BufEnter is recommended: https://github.com/chrishrb/gx.nvim/blob/38d776a0b35b9daee5020bf3336564571dc785af/README.md?plain=1#L32C4-L32C5

It would be better to replace this line with

keys = { "gx" }