1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

update packer-related instructions

This commit is contained in:
jdhao 2021-11-21 15:45:34 +08:00
parent af17364730
commit 927a57452c
4 changed files with 10 additions and 6 deletions

View File

@ -493,6 +493,6 @@ function! s:wilder_init() abort
\ 'apply_incsearch_fix': 0,
\ }))
catch /^Vim\%((\a\+)\)\=:E117/
echohl Error |echomsg "Wilder.nvim missing. Run :PackerInstall to install all plugins."|echohl None
echohl Error |echomsg "Wilder.nvim missing. Run :PackerSync to install all plugins."|echohl None
endtry
endfunction

View File

@ -205,9 +205,10 @@ directory, and run the following command to install this configuration:
git clone --depth=1 https://github.com/jdhao/nvim-config.git .
```
After that, when we first open nvim, run command `:PackerInstall` to install
all the plugins. Since I use quite a lot of plugins (more than 60), it may take
some time to install all of them, depending on your network condition.
After that, when we first open nvim, run command `:PackerSync` to install all
the plugins and generate `packer_compiled.lua`. Since I use quite a lot of
plugins (more than 60), it may take some time to install all of them, depending
on your network condition.
# Automatic installation

View File

@ -212,6 +212,6 @@ git clone --depth=1 https://hub.fastgit.org/wbthomason/packer.nvim \
~/.local/share/nvim/site/pack/packer/start/packer.nvim
echo "Installing plugins"
"$NVIM_DIR/bin/nvim" +PackerInstall +qall
"$NVIM_DIR/bin/nvim" +PackerSync +qall
echo "Finished installing Nvim and its dependencies!"

View File

@ -328,4 +328,7 @@ require("packer").startup({
},
})
require('packer_compiled')
local status, _ = pcall(require, 'packer_compiled')
if not status then
vim.notify("You should run command PackerCompile")
end