From a79596ec271354b18827184eb0c5df7c971d8dab Mon Sep 17 00:00:00 2001 From: breadtk <1126756+breadtk@users.noreply.github.com> Date: Thu, 22 May 2025 21:18:25 -0700 Subject: [PATCH] Update branch name in documentation The documentation incorrectly points to the `stable` branch in the example. However, if you look at the lazy.nvim list of branches, you won't find a `stable` branch[1]. This commit changes the example to point to `main` branch, which does exist [2] [1] https://github.com/folke/lazy.nvim/branches/all?query=stable [2] https://github.com/folke/lazy.nvim/branches/all?query=main --- docs/installation.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/installation.mdx b/docs/installation.mdx index d8a0327..57caa88 100644 --- a/docs/installation.mdx +++ b/docs/installation.mdx @@ -40,7 +40,7 @@ require("config.lazy") local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not (vim.uv or vim.loop).fs_stat(lazypath) then local lazyrepo = "https://github.com/folke/lazy.nvim.git" - local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) + local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=main", lazyrepo, lazypath }) if vim.v.shell_error ~= 0 then vim.api.nvim_echo({ { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, @@ -105,7 +105,7 @@ For more info see [Structuring Your Plugins](/usage/structuring) local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not (vim.uv or vim.loop).fs_stat(lazypath) then local lazyrepo = "https://github.com/folke/lazy.nvim.git" - local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) + local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=main", lazyrepo, lazypath }) if vim.v.shell_error ~= 0 then vim.api.nvim_echo({ { "Failed to clone lazy.nvim:\n", "ErrorMsg" },