diff options
| author | kylo252 <[email protected]> | 2022-10-31 16:27:12 +0100 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2022-10-31 16:27:12 +0100 | 
| commit | 74ad56ff68f9853a3cdb6004bf01162911bcadd6 (patch) | |
| tree | acc38539db66a6d8dba7ca2d6e3f273ff6a3b125 /utils/ci | |
| parent | 3d6338e16ee7f03de3de303e2de6d5ec5e37ba93 (diff) | |
refactor(installer): skip unstable headless update (#3338)
Diffstat (limited to 'utils/ci')
| -rw-r--r-- | utils/ci/verify_plugins.lua | 15 | 
1 files changed, 15 insertions, 0 deletions
| diff --git a/utils/ci/verify_plugins.lua b/utils/ci/verify_plugins.lua index cecb01db..d009cbda 100644 --- a/utils/ci/verify_plugins.lua +++ b/utils/ci/verify_plugins.lua @@ -26,6 +26,20 @@ end  local is_directory = require("lvim.utils").is_directory  -- see packer.init()  local packdir = join_paths(get_runtime_dir(), "site", "pack", "packer") + +local verify_packer = function() +  if not is_directory(packdir) then +    io.write "Packer not installed!" +    os.exit(1) +  end +  local status_ok, packer = pcall(require, "packer") +  if status_ok and packer then +    return +  end +  io.write "Packer not installed!" +  os.exit(1) +end +  local packer_config = { opt_dir = join_paths(packdir, "opt"), start_dir = join_paths(packdir, "start") }  local is_optional = function(spec)    return spec.opt or spec.event or spec.cmd or spec.module @@ -130,5 +144,6 @@ local function verify_core_plugins(verbose)    end)  end +verify_packer()  verify_core_plugins()  vim.cmd "q" | 
