aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/prr-ui/plugin
diff options
context:
space:
mode:
authorTeddy Wing2023-12-08 22:04:58 +0100
committerTeddy Wing2023-12-09 00:20:40 +0100
commit7c18c103fb5ab16abcd834e7a60bbd55ecc44e09 (patch)
treeefb33a53616de60b55b2364e2134222fb5bec702 /bundle/prr-ui/plugin
parentdd6f787ea345e47f2aecb49e07439e688867dc85 (diff)
downloaddotvim-7c18c103fb5ab16abcd834e7a60bbd55ecc44e09.tar.bz2
prr-ui: Automatically `PrrStart` on `PrrComment`
If the Prr session hasn't been started yet, do so automatically when running `PrrComment`. This lets me comment directly on a line without having to worry about starting the Prr review beforehand. Now that I see the code and my earlier TODO, I think I could probably have made it work without the `s:active` flag. Will have to try removing it and testing whether that works.
Diffstat (limited to 'bundle/prr-ui/plugin')
-rw-r--r--bundle/prr-ui/plugin/prr_ui.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundle/prr-ui/plugin/prr_ui.vim b/bundle/prr-ui/plugin/prr_ui.vim
index 892a774..665f65b 100644
--- a/bundle/prr-ui/plugin/prr_ui.vim
+++ b/bundle/prr-ui/plugin/prr_ui.vim
@@ -3,6 +3,6 @@ if exists('g:loaded_prr_ui')
endif
let g:loaded_prr_ui = 1
-command! PrrStart execute 'vsplit ' . system('prr-start --print')
-command! PrrSubmit update | !prr-submit
+command! PrrStart call prr_ui#StartInteractive()
+command! PrrSubmit call prr_ui#Submit()
command! PrrComment call prr_ui#Comment()