fix(pack): recover from broken HEAD repos during startup
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -28,11 +28,15 @@ local function setup_flash(keys)
|
||||
end
|
||||
|
||||
function M.setup()
|
||||
require("plugins.pack").add({
|
||||
local plugins_ready = require("plugins.pack").add({
|
||||
"folke/flash.nvim",
|
||||
{ src = "kylechui/nvim-surround", version = vim.version.range("3") },
|
||||
})
|
||||
|
||||
if not plugins_ready then
|
||||
return
|
||||
end
|
||||
|
||||
local vscode = require("vscode")
|
||||
vim.notify = vscode.notify
|
||||
|
||||
|
||||
Reference in New Issue
Block a user