From 2337ac36825ce661576ed1fb9f34a558a0ed31d3 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Tue, 19 Mar 2024 04:05:50 -0500 Subject: [PATCH] chg: No need to auto-update plugins all the time --- paq.lua | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/paq.lua b/paq.lua index 164a29c..1278705 100644 --- a/paq.lua +++ b/paq.lua @@ -8,31 +8,18 @@ local function clone_paq() end end +-- Automatically install new packages at startup local function bootstrap_paq(packages) local first_install = clone_paq() vim.cmd.packadd("paq-nvim") local paq = require("paq") + paq(packages) if first_install then vim.notify("Installing plugins... If prompted, hit Enter to continue.") paq.install() end - paq(packages) end --- Automatically install new packages at startup -vim.api.nvim_create_autocmd("VimEnter", { - once = true, - callback = function() - local paq = require("paq") - local pkgs_count = #paq.query("to_install") - if pkgs_count < 1 then - paq.update() - return end - vim.notify(string.format("There are %d plugins to install", pkgs_count)) - paq.install() - end -}) - -- Load plugin via paq-nvim bootstrap_paq { "savq/paq-nvim",