From b5f56f8c15acf69f4982f548f0fa422029191861 Mon Sep 17 00:00:00 2001 From: Jim Richter Date: Thu, 19 Aug 2021 16:42:49 +0200 Subject: [PATCH] feat: auto install plugins --- configs/init.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configs/init.lua b/configs/init.lua index cc9ed42..c9e98cb 100644 --- a/configs/init.lua +++ b/configs/init.lua @@ -2,8 +2,10 @@ local o = vim.o local opt = vim.opt local g = vim.g +local paq = require("paq"); + require("install-paq") -require("paq"):setup({verbose=true}) { +paq:setup({verbose=true}) { {url="git@github.com:savq/paq-nvim"}, -- Let Paq manage itself -- Theming Plugins {url="git@github.com:kaicataldo/material.vim", branch = "main"}, @@ -26,6 +28,12 @@ require("paq"):setup({verbose=true}) { {url="git@github.com:akinsho/nvim-toggleterm.lua"} } +local status = pcall(require, "material"); +print(status); +if not(status) then + paq.sync(); +end + local u = require("utils")