aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/prr-ui/ftplugin/prr
diff options
context:
space:
mode:
Diffstat (limited to 'bundle/prr-ui/ftplugin/prr')
-rw-r--r--bundle/prr-ui/ftplugin/prr/prr_ui.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/bundle/prr-ui/ftplugin/prr/prr_ui.vim b/bundle/prr-ui/ftplugin/prr/prr_ui.vim
new file mode 100644
index 0000000..c1dc9d7
--- /dev/null
+++ b/bundle/prr-ui/ftplugin/prr/prr_ui.vim
@@ -0,0 +1,8 @@
+let b:undo_ftplugin = ''
+
+" TODO: Pick an emoji at random from a pre-defined list.
+command! -buffer PrrApprove normal! ggOLooks good <CR><CR>@prr approve<CR><Esc>
+command! -buffer PrrReject normal! ggO<CR><CR>@prr reject<CR><Esc>
+
+let b:undo_ftplugin .= '| delcommand -buffer PrrApprove'
+let b:undo_ftplugin .= '| delcommand -buffer PrrReject'