diff options
author | Teddy Wing | 2023-12-12 20:07:42 +0100 |
---|---|---|
committer | Teddy Wing | 2023-12-12 23:42:51 +0100 |
commit | cfeee05bb0c327ea3e54ad9846d9eb5da1b443c8 (patch) | |
tree | 251fea231218e540f23e2e5f8fafbdb019eca9f9 /bundle/prr-ui/ftplugin | |
parent | d342a9fde06ca48e8a0ca6dc75859b9417410406 (diff) | |
download | dotvim-cfeee05bb0c327ea3e54ad9846d9eb5da1b443c8.tar.bz2 |
prr-ui: Allow `PrrApprove` and `PrrReject` to be called outside of *.prr
Sometimes I don't have any line comments to make and can go ahead and
accept or reject a change immediately.
In those cases, I want `PrrApprove` and `PrrReject` to be available in
any file type buffer, not just in *.prr buffers.
Additionally, those two commands should automatically do `PrrStart` if
it hasn't been executed manually before, like we already do with
`PrrComment`.
Diffstat (limited to 'bundle/prr-ui/ftplugin')
-rw-r--r-- | bundle/prr-ui/ftplugin/prr/prr_ui.vim | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/bundle/prr-ui/ftplugin/prr/prr_ui.vim b/bundle/prr-ui/ftplugin/prr/prr_ui.vim index 09e02d2..679d0fa 100644 --- a/bundle/prr-ui/ftplugin/prr/prr_ui.vim +++ b/bundle/prr-ui/ftplugin/prr/prr_ui.vim @@ -1,12 +1,5 @@ let b:undo_ftplugin = '' -command! -buffer PrrApprove - \ normal! ggOLooks good <C-r>=prr_ui#RandomEmoji()<CR><CR><CR>@prr approve<CR><Esc>gg -command! -buffer PrrReject normal! ggO<CR><CR>@prr reject<CR><Esc>gg - -let b:undo_ftplugin .= '| delcommand -buffer PrrApprove' -let b:undo_ftplugin .= '| delcommand -buffer PrrReject' - " Educate quotes. if !exists('b:textobj_quote_educate_mapped') \ || b:textobj_quote_educate_mapped == 0 |