summaryrefslogtreecommitdiff
path: root/utils/installer
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-06-23 16:11:47 +0200
committerGitHub <[email protected]>2022-06-23 16:11:47 +0200
commit8989984b781367b2744c4857e73d8943311db241 (patch)
tree29aba4fb65811b8bb3643ac7ef24eff6df8457c8 /utils/installer
parentecd344128734fe6b0772505e22922dea28338e26 (diff)
feat(installer): add verify-plugins hook (#2751)
Diffstat (limited to 'utils/installer')
-rwxr-xr-xutils/installer/install.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/installer/install.sh b/utils/installer/install.sh
index 2903dd7f..ec675e6d 100755
--- a/utils/installer/install.sh
+++ b/utils/installer/install.sh
@@ -206,6 +206,15 @@ function check_neovim_min_version() {
fi
}
+function verify_core_plugins() {
+ msg "Verifying core plugins"
+ if ! bash "$LUNARVIM_BASE_DIR/utils/ci/verify_plugins.sh"; then
+ echo "[ERROR]: Unable to verify plugins, makde sure to manually run ':PackerSync' when starting lvim for the first time."
+ exit 1
+ fi
+ echo "Verification complete!"
+}
+
function validate_lunarvim_files() {
local verify_version_cmd='if v:errmsg != "" | cquit | else | quit | endif'
if ! "$INSTALL_PREFIX/bin/lvim" --headless -c 'LvimUpdate' -c "$verify_version_cmd" &>/dev/null; then
@@ -418,6 +427,8 @@ function setup_lvim() {
-c 'PackerSync'
echo "Packer setup complete"
+
+ verify_core_plugins
}
function print_logo() {