navigator
zbirenbaum 2 years ago
parent 6e063cb3e3
commit c5bcf9d9a1

@ -2,11 +2,13 @@ local M = {}
M.bootstrap = function()
local fn = vim.fn
local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim"
local base_path = fn.stdpath "data" .. "/site/pack/packer"
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" })
if fn.empty(fn.glob(install_path)) > 0 then
if not fn.isdirectory(install_path) then
print "Cloning packer .."
fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path }

Loading…
Cancel
Save