We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b47233 commit b5cbb14Copy full SHA for b5cbb14
plugin/cider.vim
@@ -189,9 +189,13 @@ function! s:resolve_missing() abort
189
call inputsave()
190
let x = inputlist(["Select: "] + map(copy(choices), '(v:key+ 1) . ". " . v:val[0]'))
191
call inputrestore()
192
- echo '[' . choices[x - 1][0] . ' :as ' . alias . ']'
+ let @@ = "[" . choices[x - 1][0] . " :as " . alias . "]"
193
194
- " TODO: Insert choice to :require form
+ " Insert as last entry in :require list
195
+ normal gg
196
+ if search('(:require', 'W') !=# 0
197
+ execute "normal! %i\<CR>\<esc>p"
198
+ endif
199
endfunction
200
201
nnoremap <silent> <Plug>RefactorResolveMissing :<C-U>call <SID>resolve_missing()<CR>
0 commit comments