feat(nvim): open neotree only when window big enough
This commit is contained in:
parent
329aaedf48
commit
3efd1626d4
1 changed files with 10 additions and 2 deletions
|
@ -39,5 +39,13 @@ let g:minimap_auto_start = 1
|
|||
let g:minimap_auto_start_win_enter = 1
|
||||
let g:minimap_git_colors = 1
|
||||
|
||||
" Auto open Neo-Tree
|
||||
autocmd VimEnter * Neotree show
|
||||
" Auto open Neo-Tree on big enough window
|
||||
function! OpenTree() abort
|
||||
if &columns > 70
|
||||
Neotree show
|
||||
Neotree close
|
||||
Neotree show
|
||||
endif
|
||||
endfunction
|
||||
|
||||
autocmd VimEnter * call OpenTree()
|
||||
|
|
Loading…
Reference in a new issue