summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKid <[email protected]>2021-05-20 23:38:54 +0800
committerGitHub <[email protected]>2021-05-20 11:38:54 -0400
commit4ebdcac7fa5c8c2b46137a66f3b688478ac8989b (patch)
treeea1eeace5abd90354ee08b2723587b8df3266183
parent08dcd44c5c44a5878a2e30c87cfc89bc5822f085 (diff)
Improve commands in README (#392)
* Suggest removing only Packer directory in README * Adjust more commands * Delete `~/.local/share/nvim/site`
-rw-r--r--README.md19
1 files changed, 9 insertions, 10 deletions
diff --git a/README.md b/README.md
index d5f9f035..c85f70af 100644
--- a/README.md
+++ b/README.md
@@ -121,13 +121,12 @@ sudo pacman -S base-devel cmake unzip ninja tree-sitter
Download and compile Neovim
``` bash
-cd ~
-sudo rm -r neovim
-git clone https://github.com/neovim/neovim
+cd $(mktemp -d)
+git clone https://github.com/neovim/neovim --depth 1
cd neovim
sudo make CMAKE_BUILD_TYPE=Release install
-cd ~
-sudo rm -r neovim
+cd ..
+rm -rf neovim
```
or if you are on Arch you can get it from the AUR
@@ -252,7 +251,7 @@ If you get an error message about missing plugins and the above commands
do not work, remove the plugin directory and reinstall from scratch.
``` bash
-sudo rm -R ~/.local/share/nvim
+rm -rf ~/.local/share/nvim/site
:PackerCompile
:PackerInstall
```
@@ -380,7 +379,7 @@ out plugin problems with the following. This reinstalls your plugins and
language servers.
``` md
-sudo rm -R ~/.local/share/nvim
+rm -rf ~/.local/share/nvim/site
:PackerCompile
:PackerInstall
:LspInstall python <-- REPLACE WITH YOUR OWN LANGUAGE
@@ -545,13 +544,13 @@ Changed your mind about LunarVim? To remove it entirely:
``` lua
# Delete the configuration files
-sudo rm -R ~/.config/nvim
+rm -R ~/.config/nvim
# Delete the plugins
-sudo rm -R ~/.local/share/nvim
+rm -Rf ~/.local/share/nvim
# Delete the logs
-sudo rm -R ~/.cache/nvim
+rm -R ~/.cache/nvim
```
# TODO