hotfix: slient file explorer autocmd if it doesnt exist

This commit is contained in:
kiyan 2021-03-30 23:41:55 +02:00
parent eadead6072
commit e5bd242003

View File

@ -10,7 +10,7 @@ endif
augroup NvimTree
if get(g:, 'nvim_tree_hijack_netrw', 1) == 1 && get(g:, 'nvim_tree_disable_netrw', 1) == 0
autocmd! FileExplorer *
silent! autocmd! FileExplorer *
endif
au BufWritePost * lua require'nvim-tree'.refresh()
au BufEnter * lua require'nvim-tree'.buf_enter()