fix tree when option is 'right'

This commit is contained in:
kyazdani42
2020-03-01 19:23:42 +01:00
parent 7483abcf40
commit 03168a5155
3 changed files with 23 additions and 6 deletions

View File

@@ -12,6 +12,10 @@ au BufWritePost * lua require'tree'.refresh()
au BufEnter * lua require'tree'.check_windows_and_close()
au VimEnter * lua require'tree'.check_buffer_and_open()
" TODO set status line dynamically on bufenter in the luatree
" to remove lightline and other possible components
au BufEnter LuaTree setlocal statusline=""
if get(g:, 'lua_tree_follow') != 0
au BufEnter * :LuaTreeFindFile
endif