Hopefully fix packer bootstrapping
This commit is contained in:
parent
220c3ad90d
commit
2c0f7c7da8
@ -11,7 +11,7 @@ end
|
|||||||
local function ensure_packer()
|
local function ensure_packer()
|
||||||
local install_path = vim.fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
|
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)
|
install_packer(install_path)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
@ -27,10 +27,6 @@ local packer_bootstrap = ensure_packer()
|
|||||||
local function spec(use)
|
local function spec(use)
|
||||||
use "wbthomason/packer.nvim"
|
use "wbthomason/packer.nvim"
|
||||||
|
|
||||||
if packer_bootstrap then
|
|
||||||
require("packer").sync()
|
|
||||||
end
|
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
run = function()
|
run = function()
|
||||||
@ -247,6 +243,10 @@ local function spec(use)
|
|||||||
require('overseer').setup()
|
require('overseer').setup()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if packer_bootstrap then
|
||||||
|
require("packer").sync()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user