aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/prr-ui/plugin
diff options
context:
space:
mode:
authorTeddy Wing2023-12-12 20:07:42 +0100
committerTeddy Wing2023-12-12 23:42:51 +0100
commitcfeee05bb0c327ea3e54ad9846d9eb5da1b443c8 (patch)
tree251fea231218e540f23e2e5f8fafbdb019eca9f9 /bundle/prr-ui/plugin
parentd342a9fde06ca48e8a0ca6dc75859b9417410406 (diff)
downloaddotvim-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/plugin')
-rw-r--r--bundle/prr-ui/plugin/prr_ui.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundle/prr-ui/plugin/prr_ui.vim b/bundle/prr-ui/plugin/prr_ui.vim
index 665f65b..74fc1ba 100644
--- a/bundle/prr-ui/plugin/prr_ui.vim
+++ b/bundle/prr-ui/plugin/prr_ui.vim
@@ -6,3 +6,5 @@ let g:loaded_prr_ui = 1
command! PrrStart call prr_ui#StartInteractive()
command! PrrSubmit call prr_ui#Submit()
command! PrrComment call prr_ui#Comment()
+command! PrrApprove call prr_ui#Approve()
+command! PrrReject call prr_ui#Reject()