From 2c0f7c7da8f65bce579c7155e4be1eeea5176dd3 Mon Sep 17 00:00:00 2001 From: Patrick Auernig Date: Sat, 13 May 2023 00:15:09 +0200 Subject: [PATCH] Hopefully fix packer bootstrapping --- lua/valeth/packer.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/valeth/packer.lua b/lua/valeth/packer.lua index 2168e36..a078239 100644 --- a/lua/valeth/packer.lua +++ b/lua/valeth/packer.lua @@ -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