Skip to content

docs: ensure that lazy.nvim stays on latest stable tag #2116

@firephreek

Description

@firephreek

Did you check docs and existing issues?

  • I have read all the lazy.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of lazy.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.11.4

Operating system/version

Debian

Describe the bug

After installing lazy.vim from the latest version/commit of the stable branch, it immediately reports back that updates are available. If a user updates, lazy.vim is taken off of the stable build and put into a 'nightly' build.

Steps To Reproduce

  1. Follow the 'structured setup' installation, using the provided lazy.lua configuration.
    1a. Create an empty spec in the plugins directory. (lazy.vim breaks without this and it's not documented)
  2. Launch Neovim
  3. Run :Lazy to see the lazy.nvim menu.

Expected Behavior

I should see no plugins installed and a report that lazy.nvim is up-to-date. Instead, it says that there is 1 plugin installed and that lazy.nvim has an update available. Upon closer inspection, it can be seen that the updates pertain to the latest commits from the main branch. If a user updates neovim, they'll effectively be moving from a stable build to a nightly build. This is not desired behavior and it's not clear from the lazy.vim menu that this is happening especially given that the lazy.lua file is explicitly checking out the stable branch.

Image

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    -- add any other plugins here
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions