pynvim
pynvim copied to clipboard
API: "find Nvim" function
UIs and other Nvim applications often search for Nvim in the system/environment, or else they require users to specify an exact path.
- similar usecase is firenvim's get_progpath() though that obviously requires Nvim already.
pynvim could save a lot of hassle by providing a function like:
find_nvim(min_version: string)
with this behavior:
- finds
nvimin the current environment at a given minimumversion - If nvim not found at given version, return an error that mentions the version that was found
- return a usable path (like aforementioned firenvim
get_progpathlogic)- Actually this could be in
nvimitself. Maybev:progpathshould be smarter?
- Actually this could be in
see also: https://github.com/neovim/node-client/issues/146