Customize action of existing provider #647
-
Is there a way to customize the action of an existing provider? Concretely, I personally find I've made this change in-place, but i recognize that this is not ideal. I can certainly copy the entire provider as a new custom provider, but that seems heavy handed for such a limited change. Is that my only recourse, or do I have other options here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can override the existing provider in your vimrc like this: let g:MyBcommits = g:clap#provider#bcommits#
function! g:MyBcommits.sink(line) abort
echom 'New Sink'
endfunction |
Beta Was this translation helpful? Give feedback.
-
Awesome, I knew there was a better way to accomplish this. |
Beta Was this translation helpful? Give feedback.
You can override the existing provider in your vimrc like this: