dot-files/dot_config/nvim/init.lua
Buddy c1a96e788c refactor: self-bootstrap lazy.nvim instead of chezmoi archive external
Replace the chezmoiexternal tarball install with the standard
lazy.nvim bootstrap snippet (clone-if-missing, pinned to v11.17.5,
the current latest stable tag). Gives lazy.nvim a real git checkout
instead of an extracted tarball, and drops chezmoi from the loop
entirely for this one piece - bumping the version is now just
editing the --branch tag in init.lua.
2026-10-24 14:53:55 -07:00

27 lines
654 B
Lua

require("core.config")
local lazypath = vim.fn.stdpath("data") .. "/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
local out = vim.fn.system({
"git", "clone", "--filter=blob:none",
"--branch=v11.17.5",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end
vim.opt.runtimepath:prepend(lazypath)
require("lazy").setup({
spec = {
{ import = "plugins" },
},
})