Skip to content
New issue

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

API: "find Nvim" function #432

Open
justinmk opened this issue Feb 22, 2020 · 0 comments
Open

API: "find Nvim" function #432

justinmk opened this issue Feb 22, 2020 · 0 comments

Comments

@justinmk
Copy link
Member

justinmk commented Feb 22, 2020

UIs and other Nvim applications often search for Nvim in the system/environment, or else they require users to specify an exact path.

pynvim could save a lot of hassle by providing a function like:

find_nvim(min_version: string)

with this behavior:

  1. finds nvim in the current environment at a given minimum version
  2. If nvim not found at given version, return an error that mentions the version that was found
  3. return a usable path (like aforementioned firenvim get_progpath logic)
    • Actually this could be in nvim itself. Maybe v:progpath should be smarter?

see also: neovim/node-client#146

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant