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.

  • hallettj@leminal.space
    link
    fedilink
    English
    arrow-up
    3
    ·
    16 days ago

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

    • Unattributed 𓂃✍︎@feddit.onlineOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      16 days ago

      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”.

  • Unattributed 𓂃✍︎@feddit.onlineOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    16 days 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.)