From d406ee18f2730aef01b8da8aeb496fe4493fed53 Mon Sep 17 00:00:00 2001 From: Squibid Date: Tue, 1 Jul 2025 23:34:00 -0400 Subject: [PATCH] allow never syncing --- lua/dep.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/dep.lua b/lua/dep.lua index fe03e5f..96544ca 100644 --- a/lua/dep.lua +++ b/lua/dep.lua @@ -62,7 +62,9 @@ end ---@param package package package table spec ---@return boolean sync local function shouldsync(opts, package) - if opts.sync == "new" or opts.sync == nil then + if opts.sync == "never" then + return false + elseif opts.sync == "new" or opts.sync == nil then return not package.exists else return opts.sync == "always"