feat: add ability for the tree to change tab

- remove tags file
- open/close the tree on `TabEnter` with the option `g:lua_tree_tab_open`
This commit is contained in:
kiyan42
2020-08-18 19:07:43 +02:00
committed by Kiyan Yazdani
parent 6a0e76edc8
commit 9eea2b8c62
6 changed files with 23 additions and 29 deletions

View File

@@ -17,6 +17,9 @@ augroup LuaTree
au VimEnter * lua require'tree'.on_enter()
au ColorScheme * lua require'tree'.reset_highlight()
au User FugitiveChanged lua require'tree'.refresh()
if get(g:, 'lua_tree_tab_open') == 1
au TabEnter * lua require'tree'.tab_change()
endif
augroup end
command! LuaTreeOpen lua require'tree'.open()