Skip to content

Commit 032e10a

Browse files
committed
Document :OmniSharpRepeatCodeAction
1 parent eec6c61 commit 032e10a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,9 +488,12 @@ augroup omnisharp_commands
488488
autocmd FileType cs nmap <silent> <buffer> ]] <Plug>(omnisharp_navigate_down)
489489
" Find all code errors/warnings for the current solution and populate the quickfix window
490490
autocmd FileType cs nmap <silent> <buffer> <Leader>osgcc <Plug>(omnisharp_global_code_check)
491-
" Contextual code actions (uses fzf, CtrlP or unite.vim when available)
491+
" Contextual code actions (uses fzf, CtrlP or unite.vim selector when available)
492492
autocmd FileType cs nmap <silent> <buffer> <Leader>osca <Plug>(omnisharp_code_actions)
493493
autocmd FileType cs xmap <silent> <buffer> <Leader>osca <Plug>(omnisharp_code_actions)
494+
" Repeat the last code action performed (does not use a selector)
495+
autocmd FileType cs nmap <silent> <buffer> <Leader>os. <Plug>(omnisharp_code_action_repeat)
496+
autocmd FileType cs xmap <silent> <buffer> <Leader>os. <Plug>(omnisharp_code_action_repeat)
494497
495498
autocmd FileType cs nmap <silent> <buffer> <Leader>os= <Plug>(omnisharp_code_format)
496499

doc/omnisharp-vim.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,11 @@ convenient user re-mapping. These can be used like so: >
510510
:OmniSharpGetCodeActions
511511
Fuzzy-serach through available code actions
512512

513+
*:OmniSharpRepeatCodeAction*
514+
*<Plug>(omnisharp_code_action_repeat)*
515+
:OmniSharpRepeatCodeAction
516+
Repeat the last code action performed at the current cursor position
517+
513518
*:OmniSharpGlobalCodeCheck*
514519
*<Plug>(omnisharp_global_code_check)*
515520
:OmniSharpGlobalCodeCheck

0 commit comments

Comments
 (0)