From beb5ff7f3fe7b426cc5f2b2308c53866642eb21d Mon Sep 17 00:00:00 2001 From: Zach Himsel Date: Tue, 30 May 2023 10:49:32 -0400 Subject: [PATCH] docs: Add example for non-headless sync from CLI (#847) --- 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