diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-07-15 23:02:29 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-07-15 23:02:29 +0200 |
commit | 49c5b4b1aa32bfec980bdd2de26dfccbc44d7815 (patch) | |
tree | 48bb3d8796ff236e2a6c840f87c776c798aa4507 | |
parent | 1d92052c460683a02303cb63a32577514372c6f1 (diff) |
Rename bootstrap to ensure
-rw-r--r-- | init.lua | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,10 +1,10 @@ --- Bootstrap nvim with essential plugins. +-- ensure nvim with essential plugins. local fn = vim.fn local fmt = string.format local execute = vim.api.nvim_command local packer_path = fn.stdpath "data" .. "/site/pack/packer/start" -local function bootstrap(user, repository) +local function ensure(user, repository) local path = fmt("%s/%s", packer_path, repository) if fn.empty(fn.glob(path)) > 0 then execute( @@ -14,9 +14,9 @@ local function bootstrap(user, repository) end end -bootstrap("wbthomason", "packer.nvim") -bootstrap("Olical", "aniseed") -bootstrap("lewis6991", "impatient.nvim") +ensure("wbthomason", "packer.nvim") +ensure("Olical", "aniseed") +ensure("lewis6991", "impatient.nvim") require "impatient" |