reorganized for noble
This commit is contained in:
parent
e16d142dde
commit
d0bbadf1b0
1 changed files with 14 additions and 4 deletions
12
spacevim.sh
12
spacevim.sh
|
@ -3,13 +3,23 @@ echo "Installing Spacevim!"
|
|||
[ -d $HOME/.vim ] && mv "$HOME/.vim" "$HOME/vim_bk"
|
||||
[ -f $HOME/.vimrc ] && mv "$HOME/.vimrc" "$HOME/vimrc_bk"
|
||||
curl -sLf https://spacevim.org/install.sh | bash -s -- --install vim
|
||||
|
||||
echo "Install Neovim"
|
||||
trash ~/.local/share/nvim ~/.config/nvim #removes spacevim's symlink
|
||||
mkdir -v ~/bin
|
||||
|
||||
release=`lsb_release -cs`
|
||||
if [[ $release != noble ]]; then
|
||||
trash ~/bin/nvim
|
||||
curl -L https://github.com/neovim/neovim/releases/latest/download/nvim.appimage -o ~/bin/nvim
|
||||
chmod u+x ~/bin/nvim
|
||||
trash ~/.local/share/nvim ~/.config/nvim #removes spacevim's symlink
|
||||
else
|
||||
sudo apt install neovim
|
||||
fi
|
||||
|
||||
echo "Install NvChad"
|
||||
git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1
|
||||
|
||||
echo "Install Lunar Vim"
|
||||
#source: https://www.lunarvim.org/docs/installation
|
||||
LV_BRANCH='release-1.3/neovim-0.9' bash <(curl -s https://raw.githubusercontent.com/LunarVim/LunarVim/release-1.3/neovim-0.9/utils/installer/install.sh)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue