MordechaiHadad / bob

A version manager for neovim
MIT License
1.41k stars 36 forks source link

Install based on nvim --version #213

Closed erlonbie closed 3 months ago

erlonbie commented 3 months ago

This is probably a noob question, but I could not find a proper answer for this.

Context:

When I type nvim -- version, I get this ouput:

NVIM v0.10.0-dev-1911+g104565909
Build type: RelWithDebInfo
LuaJIT 2.1.1702233742
Run "nvim -V1 -v" for more info

For bob list:

┌────────────────────┬─────────────┐
│  Version           │  Status     │
├────────────────────┼─────────────┤
│  nightly           │  Used       │
│  v0.9.2            │  Installed  │
│  nightly-SLg7CqfG  │  Installed  │
│  nightly-qYnEB3PP  │  Installed  │
└────────────────────┴─────────────┘

I decide to install/use the stable version and my bob list output became this:

┌────────────────────┬─────────────┐
│  Version           │  Status     │
├────────────────────┼─────────────┤
│  nightly           │  Installed  │
│  v0.9.2            │  Installed  │
│  nightly-SLg7CqfG  │  Installed  │
│  v0.10.0           │  Used       │
│  nightly-qYnEB3PP  │  Installed  │
└────────────────────┴─────────────┘

The problem is that if try to return to nightly using the use command version, it will automatically update and go to (probably) to 0.11.0 which will break my current config.

What I would like to know is how to install based on that version number that is already installed, in this case NVIM v0.10.0-dev-1911+g104565909

I search on the main branch (which is the dev branch) of neovim a commit that contains the g104565909 but could not find it.

I'm probably missing something, but at the moment I'm out of ideas. Thanks in advance!

MordechaiHadad commented 3 months ago

Bob automatically creates rollbacks upon nightly update, in your instance nightly-qYnEB3PP, nightly-SLg7CqfG if you want to rollback to the latest nightly, simply run bob rollback and choose the first option.