diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/README.md | 20 | ||||
| -rwxr-xr-x | docs/nvim_setup_linux.sh | 8 |
2 files changed, 3 insertions, 25 deletions
diff --git a/docs/README.md b/docs/README.md index ae25d4f..774d919 100644 --- a/docs/README.md +++ b/docs/README.md @@ -111,7 +111,7 @@ vim-language-server is installed in the same directory as the node executable. ### Git -Git is required by plugin manager [packer.nvim](https://github.com/wbthomason/packer.nvim) and other git-related plugins. +Git is required by plugin manager [lazy.nvim](https://github.com/folke/lazy.nvim) and other git-related plugins. For Linux and macOS, Git is usually pre-installed. The version of Git on the Linux system may be too old so that plugins may break. @@ -201,22 +201,6 @@ After installing Nvim, we need to set the path to nvim correctly. After installing nvim and all the dependencies, we will install plugin managers and set up this config. -### Install plugin manager packer.nvim - -I use packer.nvim to manage my plugins. We need to install packer.nvim on our system first. - -For Windows, if curl is installed, run the following command (on PowerShell): - -``` -git clone --depth=1 https://github.com/wbthomason/packer.nvim "$env:LOCALAPPDATA\nvim-data\site\pack\packer\opt\packer.nvim" -``` - -For macOS and Linux, run the following command: - -```bash -git clone --depth=1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/opt/packer.nvim -``` - ### How to install this configuration On Linux and macOS, the directory is `~/.config/nvim`. @@ -228,7 +212,7 @@ then go to this directory, and run the following command: git clone --depth=1 https://github.com/jdhao/nvim-config.git . ``` -After that, when we first open nvim, run command `:PackerSync` to install all the plugins. +After that, when we first open nvim, all the plugins will be installed automatically. Since I use quite a lot of plugins (more than 60), it may take some time to install all of them. [^1]: Use `echo %userprofile%` to see where your `$HOME` is. diff --git a/docs/nvim_setup_linux.sh b/docs/nvim_setup_linux.sh index 2a72890..ed207a4 100755 --- a/docs/nvim_setup_linux.sh +++ b/docs/nvim_setup_linux.sh @@ -252,13 +252,7 @@ fi git clone --depth=1 https://github.com/jdhao/nvim-config.git "$NVIM_CONFIG_DIR" -echo "Installing packer.nvim" -if [[ ! -d ~/.local/share/nvim/site/pack/packer/opt/packer.nvim ]]; then - git clone --depth=1 https://github.com/wbthomason/packer.nvim \ - ~/.local/share/nvim/site/pack/packer/opt/packer.nvim -fi - echo "Installing nvim plugins, please wait" -"$NVIM_DIR/bin/nvim" -c "autocmd User PackerComplete quitall" -c "PackerSync" +"$NVIM_DIR/bin/nvim" -c "autocmd User LazyInstall quitall" -c "lua require('lazy').install()" echo "Finished installing Nvim and its dependencies!" |
