rhysd / git-messenger.vim

Vim and Neovim plugin to reveal the commit messages under the cursor
MIT License
1.34k stars 32 forks source link

unmap inside the popup window #63

Closed kevinhwang91 closed 4 years ago

kevinhwang91 commented 4 years ago

I have remapped d to scroll down the half-page in my workflow, but git-messenger.vim can't unmap d inside popup.

filetype event didn't work because it was triggered before mapping key inside the popup window.

rhysd commented 4 years ago

Yes, currently the default mappings cannot be overriden. I'll fix this tonight.

rhysd commented 4 years ago

Now below should work.

function! s:setup_git_messenger_popup() abort
    nunmap <buffer>d
endfunction
autocmd FileType gitmessengerpopup call <SID>setup_git_messenger_popup()