diff options
-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" |