1
0

Hopefully fix packer bootstrapping

This commit is contained in:
Patrick Auernig 2023-05-13 00:15:09 +02:00
parent 220c3ad90d
commit 2c0f7c7da8

View File

@ -11,7 +11,7 @@ end
local function ensure_packer()
local install_path = vim.fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
if not vim.fn.isdirectory(install_path) then
if vim.fn.isdirectory(install_path) == 0 then
install_packer(install_path)
return true
end
@ -27,10 +27,6 @@ local packer_bootstrap = ensure_packer()
local function spec(use)
use "wbthomason/packer.nvim"
if packer_bootstrap then
require("packer").sync()
end
use {
"nvim-treesitter/nvim-treesitter",
run = function()
@ -247,6 +243,10 @@ local function spec(use)
require('overseer').setup()
end
}
if packer_bootstrap then
require("packer").sync()
end
end