fix(pack): recover from broken HEAD repos during startup

This commit is contained in:
2026-05-30 15:27:33 +08:00
parent 94699474c7
commit f3176eb294
3 changed files with 50 additions and 3 deletions
+5 -1
View File
@@ -28,7 +28,7 @@ local function setup_flash(keys)
end
function M.setup()
require("plugins.pack").add({
local plugins_ready = require("plugins.pack").add({
"folke/flash.nvim",
"folke/which-key.nvim",
"kylechui/nvim-surround",
@@ -61,6 +61,10 @@ function M.setup()
vim.opt.foldmethod = "indent"
vim.opt.foldlevel = 99
if not plugins_ready then
return
end
setup_flash({
jump_key = "<leader>s",
treesitter_key = "<leader>S",