From c0fac4a58ecba4d57ad277678be3f9f022c42d5c Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 24 Apr 2022 20:51:40 +0200 Subject: refactor: rename path --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 3a98772..f9e1cf2 100644 --- a/init.lua +++ b/init.lua @@ -5,14 +5,14 @@ local execute = vim.api.nvim_command local packer_path = fn.stdpath "data" .. "/site/pack/packer/start" local function bootstrap(user, repository) - local bootstrap_path = fmt("%s/%s", packer_path, repository) - if fn.empty(fn.glob(bootstrap_path)) > 0 then + local path = fmt("%s/%s", packer_path, repository) + if fn.empty(fn.glob(path)) > 0 then execute( fmt( "!git clone --depth 1 https://github.com/%s/%s %s", user, repository, - bootstrap_path + path ) ) execute(fmt("packadd %s", repository)) -- cgit v1.2.3-70-g09d2