summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf@nexure.io>2022-10-17 09:00:28 +0200
committerGustaf Rydholm <gustaf@nexure.io>2022-10-17 09:00:28 +0200
commitf9c022399a35558fe7f997dbeab3c26d7f955992 (patch)
tree30dfed56d752ff779da584ab502e9a3bda952215 /init.lua
parenta45853f468feb2be399a587664df7f4872816b53 (diff)
parentf3432fc8f42246ac26f90146f13045377bc3899e (diff)
Merge branch 'master' of github.com:aktersnurra/nvim
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 455a818..03e828b 100644
--- a/init.lua
+++ b/init.lua
@@ -3,10 +3,12 @@ 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 sync = false
local function ensure(user, repository)
local path = fmt("%s/%s", packer_path, repository)
if fn.empty(fn.glob(path)) > 0 then
+ sync = true
execute(
fmt("!git clone --depth 1 https://github.com/%s/%s %s", user, repository, path)
)
@@ -18,6 +20,10 @@ ensure("wbthomason", "packer.nvim")
ensure("Olical", "aniseed")
ensure("lewis6991", "impatient.nvim")
+if sync then
+ require("packer").sync()
+end
+
require "impatient"
vim.g["aniseed#env"] = {