diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-24 20:51:40 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-24 20:51:40 +0200 |
commit | c0fac4a58ecba4d57ad277678be3f9f022c42d5c (patch) | |
tree | 5661467548e1f5c6256ffffcedd54399a54c59be | |
parent | bacdb770a48a035888c2519b29b81c728c8b2d68 (diff) |
refactor: rename path
-rw-r--r-- | init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)) |