mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
fix the installation stuck on Ok to remove (#912)
This commit is contained in:
parent
e78b5845c1
commit
cae6b7da4c
2 changed files with 16 additions and 0 deletions
|
@ -33,6 +33,15 @@ If you help to develop Lunarvim, you can install a specific branch branch direct
|
||||||
LVBRANCH=rolling bash <(curl -s https://raw.githubusercontent.com/ChristianChiarulli/lunarvim/rolling/utils/installer/install.sh)
|
LVBRANCH=rolling bash <(curl -s https://raw.githubusercontent.com/ChristianChiarulli/lunarvim/rolling/utils/installer/install.sh)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If your installation is stuck on `Ok to remove? [y/N]`, it means there are some leftovers, \
|
||||||
|
you can run the script with `--overwrite` but be warned this will remove the following folder:
|
||||||
|
- `~/.config/nvim`
|
||||||
|
- `~/.cache/nvim`
|
||||||
|
- `~/.local/share/nvim/site/pack/packer`
|
||||||
|
```bash
|
||||||
|
curl -s https://raw.githubusercontent.com/ChristianChiarulli/lunarvim/rolling/utils/installer/install.sh| LVBRANCH=rolling bash -s -- --overwrite
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Installing LSP for your language
|
## Installing LSP for your language
|
||||||
|
|
||||||
|
|
|
@ -182,6 +182,13 @@ installextrapackages() {
|
||||||
# Welcome
|
# Welcome
|
||||||
echo 'Installing LunarVim'
|
echo 'Installing LunarVim'
|
||||||
|
|
||||||
|
if [[ $* == *--overwrite* ]]; then
|
||||||
|
echo '!!Warning!! -> Removing all nvim related config because of the --overwrite flag'
|
||||||
|
rm -rf "$HOME/.config/nvim"
|
||||||
|
rm -rf "$HOME/.cache/nvim"
|
||||||
|
rm -rf "$HOME/.local/share/nvim/site/pack/packer"
|
||||||
|
fi
|
||||||
|
|
||||||
# move old nvim directory if it exists
|
# move old nvim directory if it exists
|
||||||
[ -d "$HOME/.config/nvim" ] && moveoldnvim
|
[ -d "$HOME/.config/nvim" ] && moveoldnvim
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue