nvim: Fix netrw buffers staying open after usage of vinegar

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-05-01 11:06:01 +05:30
parent 55d3655ffe
commit b57e4bdceb

View file

@ -409,7 +409,16 @@ augroup ResizeWindowsProportionally
autocmd VimResized * :wincmd = autocmd VimResized * :wincmd =
augroup END augroup END
augroup VinegarNetrw
au!
autocmd FileType netrw set bufhidden=delete
augroup END
" --------------------------- Plugin settings -------------------------------- " --------------------------- Plugin settings --------------------------------
" Close open netrw buffers once done selecting file in vinegar
" See https://github.com/tpope/vim-vinegar/issues/13
let g:netrw_fastbrowse = 0
" Let vim-gitgutter do its thing on large files " Let vim-gitgutter do its thing on large files
let g:gitgutter_max_signs=1000 let g:gitgutter_max_signs=1000
let g:gitgutter_map_keys = 0 let g:gitgutter_map_keys = 0