neoclide / npm.nvim

Npm plugin to make vim user works with npm easier
MIT License
29 stars 4 forks source link

Ability to browse package under cursor #3

Open dentuzhik opened 5 years ago

dentuzhik commented 5 years ago

Thank you for the package, really saves me a pane open in tmux for majority of my npm install. One thing which would be amazing to implement is ability to browse a package under cursor (either npm or GitHub) using a key-binding.

Kind of like OctoLinker, but for vim. https://github.com/OctoLinker/OctoLinker

Since package.json is already parsed as I see, it should not be a big deal to open a repository_url and/or documentation_url of a package when an iW under cursor matches something from package.json

Do you think this is in scope of this plugin? If yes, I could try to have a look and submit a PR

chemzqm commented 5 years ago

Do you think this is in scope of this plugin?

Sure, would be nice to have.