node-client icon indicating copy to clipboard operation
node-client copied to clipboard

API: "find Nvim" function

Open justinmk opened this issue 4 years ago • 0 comments

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

node-client could save a lot of hassle by providing a function like:

get_nvim_from_env(minVersion: 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?

justinmk avatar Feb 22 '20 23:02 justinmk