Created
December 23, 2022 18:38
-
-
Save Defelo/b844e8304888e35f3297d4d3960c1d2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -ex | |
mkdir -p ~/.local/share/lunarvim | |
git clone --branch release-1.2/neovim-0.8 https://github.com/lunarvim/lunarvim.git ~/.local/share/lunarvim/lvim | |
mkdir -p ~/.local/bin | |
cat << 'EOF' > ~/.local/bin/lvim | |
#!/usr/bin/env bash | |
export LUNARVIM_RUNTIME_DIR=~/.local/share/lunarvim | |
export LUNARVIM_CONFIG_DIR=~/.config/lvim | |
export LUNARVIM_CACHE_DIR=~/.cache/lvim | |
export LUNARVIM_BASE_DIR=~/.local/share/lunarvim/lvim | |
exec -a lvim nvim -u "$LUNARVIM_BASE_DIR/init.lua" "$@" | |
EOF | |
chmod u+x ~/.local/bin/lvim | |
mkdir -p ~/.config/lvim | |
cp ~/.local/share/lunarvim/lvim/utils/installer/config.example.lua ~/.config/lvim/config.lua | |
~/.local/bin/lvim --headless -c 'autocmd User PackerComplete quitall' -c PackerSync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment