summaryrefslogtreecommitdiff
path: root/utils/installer/install.sh
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2021-11-27 15:22:43 +0100
committerGitHub <[email protected]>2021-11-27 15:22:43 +0100
commit24be0ef1ef36b8cc725655e920104e9676b72f25 (patch)
tree4b36a186c893844d6db4b99c5ed553179858f3d0 /utils/installer/install.sh
parent044b53a6fed7ed2c477870883857a9742a2e1b98 (diff)
chore: bump core-plugins version (#1989)
Diffstat (limited to 'utils/installer/install.sh')
-rwxr-xr-xutils/installer/install.sh19
1 files changed, 2 insertions, 17 deletions
diff --git a/utils/installer/install.sh b/utils/installer/install.sh
index e7631999..b6b7bc31 100755
--- a/utils/installer/install.sh
+++ b/utils/installer/install.sh
@@ -14,7 +14,6 @@ declare -r LUNARVIM_RUNTIME_DIR="${LUNARVIM_RUNTIME_DIR:-"$XDG_DATA_HOME/lunarvi
declare -r LUNARVIM_CONFIG_DIR="${LUNARVIM_CONFIG_DIR:-"$XDG_CONFIG_HOME/lvim"}"
# TODO: Use a dedicated cache directory #1256
declare -r LUNARVIM_CACHE_DIR="$XDG_CACHE_HOME/nvim"
-declare -r LUNARVIM_PACK_DIR="$LUNARVIM_RUNTIME_DIR/site/pack"
declare BASEDIR
BASEDIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
@@ -114,8 +113,6 @@ function main() {
done
fi
- install_packer
-
if [ -e "$LUNARVIM_RUNTIME_DIR/lvim/init.lua" ]; then
update_lvim
else
@@ -280,18 +277,6 @@ function backup_old_config() {
echo "Backup operation complete"
}
-function install_packer() {
- if [ -e "$LUNARVIM_PACK_DIR/packer/start/packer.nvim" ]; then
- msg "Packer already installed"
- else
- if ! git clone --depth 1 "https://github.com/wbthomason/packer.nvim" \
- "$LUNARVIM_PACK_DIR/packer/start/packer.nvim"; then
- msg "Failed to clone Packer. Installation failed."
- exit 1
- fi
- fi
-}
-
function clone_lvim() {
msg "Cloning LunarVim configuration"
if ! git clone --branch "$LV_BRANCH" \
@@ -351,10 +336,10 @@ function setup_lvim() {
setup_shim
- echo "Preparing Packer setup"
-
cp "$LUNARVIM_RUNTIME_DIR/lvim/utils/installer/config.example.lua" "$LUNARVIM_CONFIG_DIR/config.lua"
+ echo "Preparing Packer setup"
+
"$INSTALL_PREFIX/bin/lvim" --headless \
-c 'autocmd User PackerComplete quitall' \
-c 'PackerSync'