From 589e39d6423fb99882f5626d96d70300866d52ca Mon Sep 17 00:00:00 2001 From: kiyan Date: Sat, 19 Feb 2022 17:00:20 +0100 Subject: [PATCH] chore: document toggle method second parameter --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7fc12890..2055f836 100644 --- a/README.md +++ b/README.md @@ -292,6 +292,7 @@ You can toggle the help UI by pressing `g?`. 1. you can add a directory by adding a `/` at the end of the paths, entering multiple directories `BASE/foo/bar/baz` will add directory foo, then bar and add a file baz to it. 2. you can update window options for the tree by setting `require"nvim-tree.view".View.winopts.MY_OPTION = MY_OPTION_VALUE` +3. `toggle` has a second parameter which allows to toggle without focusing the explorer (`require"nvim-tree.toggle(false, false)`). ## Screenshots