docs: Add example for non-headless sync from CLI (#847)

This commit is contained in:
Zach Himsel 2023-05-30 10:49:32 -04:00 committed by GitHub
parent ebdd049955
commit beb5ff7f3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -621,6 +621,12 @@ example, if you want to sync lazy from the cmdline, you can use:
$ nvim --headless "+Lazy! sync" +qa
<
If you want to do the above, but with the full nvim UI (instead of headless):
>shell
$ nvim "+autocmd User VeryLazy Lazy! sync" +qa
<
`opts` is a table with the following key-values:
- **wait**when true, then the call will wait till the operation completed