docs: Add example for non-headless sync from CLI

This commit is contained in:
Zach Himsel 2023-05-30 09:38:33 -04:00 committed by Zach Himsel
commit a522a13111
No known key found for this signature in database
GPG key ID: A54495A13162A768

View file

@ -621,6 +621,12 @@ example, if you want to sync lazy from the cmdline, you can use:
$ nvim --headless "+Lazy! sync" +qa $ 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: `opts` is a table with the following key-values:
- **wait**when true, then the call will wait till the operation completed - **wait**when true, then the call will wait till the operation completed