diff --git a/README.md b/README.md index 170f1250..1ac785dc 100644 --- a/README.md +++ b/README.md @@ -222,6 +222,7 @@ require'nvim-tree'.setup { - `R` will refresh the tree - Double left click acts like `` - Double right click acts like `` +- `W` will collapse the whole tree ### Settings @@ -284,6 +285,7 @@ local list = { { key = "s", action = "system_open" }, { key = "q", action = "close" }, { key = "g?", action = "toggle_help" }, + { key = "W", action = "collapse_all" } } ``` diff --git a/doc/nvim-tree-lua.txt b/doc/nvim-tree-lua.txt index 2bb341d5..8bcd2fc4 100644 --- a/doc/nvim-tree-lua.txt +++ b/doc/nvim-tree-lua.txt @@ -599,6 +599,8 @@ INFORMATIONS *nvim-tree-info* - Double left click acts like '' - Double right click acts like '' +- 'W' will collapse the whole tree + Defaults to: > lua <