From 49c5b4b1aa32bfec980bdd2de26dfccbc44d7815 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 15 Jul 2022 23:02:29 +0200 Subject: Rename bootstrap to ensure --- init.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 8c2e5fc..455a818 100644 --- a/init.lua +++ b/init.lua @@ -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" -- cgit v1.2.3-70-g09d2