nvim: after/plugin/fugitive: Only keep the diff window around

Somehow dirvish buffer opens along with diff window when using
this mapping. Use only to close any other windows in this tab.
This commit is contained in:
Sanchayan Maity 2022-04-02 18:26:59 +05:30
parent aad3027a89
commit 81fc328b4e

View file

@ -41,5 +41,5 @@ augroup custom_fugitive
autocmd!
autocmd FileType fugitive,fugitiveblame nnoremap <buffer><silent> q :bwipeout!<CR>
autocmd BufReadPost fugitive:// setlocal bufhidden=wipe
autocmd User FugitiveIndex nmap <buffer> dt :Gtabedit <Plug><cfile><Bar>Gdiffsplit!<CR>
autocmd User FugitiveIndex nmap <buffer> dt :Gtabedit <Plug><cfile><Bar>Gdiffsplit!<Bar>only<CR>
augroup END