nvim: after/plugin/ftplugin: Update setting of buffer local mappings

This commit is contained in:
Sanchayan Maity 2022-05-14 13:45:21 +05:30
parent edb11e5e1d
commit f4b928bd3e
2 changed files with 3 additions and 2 deletions

View file

@ -0,0 +1 @@
nnoremap <buffer> <silent> q :bwipeout!<CR>

View file

@ -39,7 +39,7 @@ nnoremap <expr> <Leader>gP git#git_push()
augroup custom_fugitive
autocmd!
autocmd FileType fugitive,fugitiveblame nnoremap <buffer><silent> q :bwipeout!<CR>
autocmd BufReadPost fugitive:// setlocal bufhidden=wipe
autocmd BufReadPost fugitive://* setlocal bufhidden=wipe
autocmd User FugitiveObject,FugitiveIndex nnoremap <buffer><silent> q :bwipeout!<CR>
autocmd User FugitiveIndex nmap <buffer> dt :Gtabedit <Plug><cfile><Bar>Gdiffsplit!<Bar>only<CR>
augroup END