From a522a131118b76032aa2d86903bc69b0ab10208a Mon Sep 17 00:00:00 2001 From: Zach Himsel Date: Tue, 30 May 2023 09:38:33 -0400 Subject: [PATCH] docs: Add example for non-headless sync from CLI --- doc/lazy.nvim.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/lazy.nvim.txt b/doc/lazy.nvim.txt index c303b3b..8b24c00 100644 --- a/doc/lazy.nvim.txt +++ b/doc/lazy.nvim.txt @@ -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