From 0a2e1a11da108edb13d057feb4ccdfdf20a9fe80 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 5 Dec 2023 22:35:27 +0100 Subject: prr-ui: Idea for a command to comment on a line from the code --- bundle/prr-ui/autoload/prr_ui.vim | 5 +++++ bundle/prr-ui/plugin/prr_ui.vim | 1 + 2 files changed, 6 insertions(+) (limited to 'bundle') diff --git a/bundle/prr-ui/autoload/prr_ui.vim b/bundle/prr-ui/autoload/prr_ui.vim index a60e5ce..8e35a50 100644 --- a/bundle/prr-ui/autoload/prr_ui.vim +++ b/bundle/prr-ui/autoload/prr_ui.vim @@ -860,3 +860,8 @@ function! prr_ui#RandomEmoji() let l:index = rand() % s:emoji_list_length return s:emoji[l:index] endfunction + + +" Comment on the current line. +function! prr_ui#Comment() +endfunction diff --git a/bundle/prr-ui/plugin/prr_ui.vim b/bundle/prr-ui/plugin/prr_ui.vim index 1aaf457..892a774 100644 --- a/bundle/prr-ui/plugin/prr_ui.vim +++ b/bundle/prr-ui/plugin/prr_ui.vim @@ -5,3 +5,4 @@ let g:loaded_prr_ui = 1 command! PrrStart execute 'vsplit ' . system('prr-start --print') command! PrrSubmit update | !prr-submit +command! PrrComment call prr_ui#Comment() -- cgit v1.2.3