this post was submitted on 13 Jan 2026
9 points (100.0% liked)

Neovim

1914 readers
1 users here now

Neovim is a modal text editor forked off of Vim in 2014. Being modal means that you do not simply type text on screen, but the behavior and functionality of the editor changes entirely depending on the mode.

The most common and most used mode, the "normal mode" for Neovim is to essentially turn your keyboard in to hotkeys with which you can navigate and manipulate text. Several modes exist, but two other most common ones are "insert mode" where you type in text directly as if it was a traditional text editor, and "visual mode" where you select text.

Neovim seeks to enable further community participation in its development and to make drastic changes without turning it in to something that is "not Vim". Neovim also seeks to enable embedding the editor within GUI applications.

The Neovim logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.

founded 5 years ago
MODERATORS
 

I'm trying to install Lazy, but I keep getting a checkout error for snacks -- any idea how I can resolve this?

image

UPDATE 01/14: So, after Astro failed to install last night, with the same issue with snacks.nvim, I tried starting nvim this morning. Much to my surprise, Astro was able to finish the snacks.nvim installation. So, I nuked everything and started Lazy installation again...and this time it installed without any issue with snacks.nvim.

top 8 comments
sorted by: hot top controversial new old
[–] hallettj@leminal.space 3 points 2 months ago (1 children)

You could try cding to the snacks.nvim directory in the error message, and running the suggested git restore command.

[–] Unattributed@feddit.online 2 points 2 months ago (1 children)

So, I ran the git status and it came up with 282 files to delete:

image

Then I run the git restore and it says nothing:

image

And when I restart Neovim, it starts cloning the repo again, and ends right back at the same error "Clone succeeded, but checkout failed".

[–] hallettj@leminal.space 1 points 1 month ago* (last edited 1 month ago) (1 children)

Oh sorry, I see you did run the exact command. Maybe delete that directory?

[–] Unattributed@feddit.online 1 points 1 month ago (1 children)

I've done it clean (without the directory) and get the same result.

Interestingly, in chatting with someone else, they referenced a stackoverflow post that mentioned doing a git checkout HEAD, which I did and resulted in a clean repository. But, Lazy keeps trying to re-clone the repository and comes up with the same error everytime.

[–] hallettj@leminal.space 1 points 1 month ago (1 children)

Are you maybe low on disk space?

[–] Unattributed@feddit.online 1 points 1 month ago

Nope - 700G free.

[–] JustJack23@slrpnk.net 1 points 2 months ago

What does git status say?

[–] Unattributed@feddit.online 1 points 1 month ago

Sorry to start a new branch, but I tried something else... I tried installing Astro -- and it has the same issue: failing to get snacks.nvim installed.

Given that this is happening with two packages, I can't help but think there is something weird with the snacks repository. I am getting everything else cloned and installed without issue.

(And, before someone asks..... I 100% nuked: ~/.config/nvim, ~/.local/share/nvim, ~/.local/state/nvim, and ~/.cache/nvim -- so everything was clean when I tried the install.)