Revert "fix #1141"

This reverts commit c5bcf9d9a1.
This commit is contained in:
siduck 2022-05-29 19:26:12 +05:30
parent 4055b8bb19
commit 34fbb2e066

View File

@ -2,13 +2,11 @@ local M = {}
M.bootstrap = function() M.bootstrap = function()
local fn = vim.fn local fn = vim.fn
local base_path = fn.stdpath "data" .. "/site/pack/packer" local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim"
local opt, start = base_path .. "/opt/packer.nvim", base_path .. "/start/packer.nvim"
local install_path = fn.isdirectory(opt) and opt or start
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "#1e222a" }) vim.api.nvim_set_hl(0, "NormalFloat", { bg = "#1e222a" })
if not fn.isdirectory(install_path) then if fn.empty(fn.glob(install_path)) > 0 then
print "Cloning packer .." print "Cloning packer .."
fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path } fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path }