chg: No need to auto-update plugins all the time

This commit is contained in:
Sayantan Santra 2024-03-19 04:05:50 -05:00
parent 032a6cd807
commit 2337ac3682
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

17
paq.lua
View file

@ -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",