-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Overview
Implement management for the current installed Neovim release in nvimm:
- When the first nvim release is installed, set it automatically as the current.
- New releases installed subsequently are just added locally, not made current.
- To switch between releases, provide the command:
nvimm current <release> - When running
nvimm currentwith no arguments, show the one currently selected as current. - The "current" release is represented as a symbolic link in the installation directory pointing to the chosen release's directory (e.g.,
~/.cache/nvimm/current→~/.cache/nvimm/<release>).
Requirements
- Automatically set the first installed release as current.
- Only update the "current" symlink when using the
currentcommand with a version argument. - Allow running
nvimm currentwithout arguments to display which version is currently set as current. - Use a symlink (
current) in the nvim install path to represent the current version. - Add safety checks: only link to installed releases, provide errors if a requested version does not exist.
- Document in English, describing behavior of install, switch, and
nvimm currentoutput.
Example Flows
nvimm install 0.11.5(first): makes0.11.5currentnvimm install 0.12.0(later): is just installed, not currentnvimm current: shows which release is marked as currentnvimm current 0.12.0: switches symlink to0.12.0if installed
Extensibility
- Structure logic for possible multi-user or per-project environments in future.
Reactions are currently unavailable