This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local execute = vim.api.nvim_command | |
local fn = vim.fn | |
local fmt = string.format | |
local pack_path = fn.stdpath("data") .. "/site/pack" | |
-- ensure a given plugin from github.com/<user>/<repo> is cloned in the pack/packer/start directory | |
local function ensure (user, repo) | |
local install_path = fmt("%s/packer/start/%s", pack_path, repo) | |
if fn.empty(fn.glob(install_path)) > 0 then |