Added relevant documentation for quit-on-open

This commit is contained in:
johnpyp 2020-10-16 20:31:41 -04:00 committed by Kiyan Yazdani
parent c496c8b9d9
commit fc210e3375
2 changed files with 7 additions and 1 deletions

View File

@ -29,6 +29,7 @@ let g:lua_tree_width = 40 "30 by default
let g:lua_tree_ignore = [ '.git', 'node_modules', '.cache' ] "empty by default let g:lua_tree_ignore = [ '.git', 'node_modules', '.cache' ] "empty by default
let g:lua_tree_auto_open = 1 "0 by default, opens the tree when typing `vim $DIR` or `vim` let g:lua_tree_auto_open = 1 "0 by default, opens the tree when typing `vim $DIR` or `vim`
let g:lua_tree_auto_close = 1 "0 by default, closes the tree when it's the last window let g:lua_tree_auto_close = 1 "0 by default, closes the tree when it's the last window
let g:lua_tree_close_on_open = 1 "0 by default, closes the tree when you open a file
let g:lua_tree_follow = 1 "0 by default, this option allows the cursor to be updated when entering a buffer let g:lua_tree_follow = 1 "0 by default, this option allows the cursor to be updated when entering a buffer
let g:lua_tree_indent_markers = 1 "0 by default, this option shows indent markers when folders are open let g:lua_tree_indent_markers = 1 "0 by default, this option shows indent markers when folders are open
let g:lua_tree_hide_dotfiles = 1 "0 by default, this option hides files and folders starting with a dot `.` let g:lua_tree_hide_dotfiles = 1 "0 by default, this option hides files and folders starting with a dot `.`

View File

@ -134,6 +134,12 @@ Can be `0` or `1`. When `1`, will bind |BufEnter| to automatically
close the tree if it's the last window. close the tree if it's the last window.
Default is 0 Default is 0
|g:lua_tree_quit_on_open| *g:lua_tree_quit_on_open*
Can be `0` or `1`. When `1`, will close the tree when a file is opened.
Applies to: `preview`, `edit`, `edit_vsplit`, `edit_split`, `edit_tab`.
Default is 0
|g:lua_tree_disable_keybindings| *g:lua_tree_disable_keybindings* |g:lua_tree_disable_keybindings| *g:lua_tree_disable_keybindings*
Can be `0` or `1`. When `1`, will disable all keybindings by the plugin. Can be `0` or `1`. When `1`, will disable all keybindings by the plugin.
@ -307,4 +313,3 @@ LuaTreeFileNew
LuaTreeFileRenamed LuaTreeFileRenamed
vim:tw=78:ts=8:noet:ft=help:norl: vim:tw=78:ts=8:noet:ft=help:norl: