Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b5cbb14

Browse filesBrowse files
committed
Insert chosen require
1 parent 4b47233 commit b5cbb14
Copy full SHA for b5cbb14

File tree

Expand file treeCollapse file tree

1 file changed

+6
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-2
lines changed

‎plugin/cider.vim

Copy file name to clipboardExpand all lines: plugin/cider.vim
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,13 @@ function! s:resolve_missing() abort
189189
call inputsave()
190190
let x = inputlist(["Select: "] + map(copy(choices), '(v:key+ 1) . ". " . v:val[0]'))
191191
call inputrestore()
192-
echo '[' . choices[x - 1][0] . ' :as ' . alias . ']'
192+
let @@ = "[" . choices[x - 1][0] . " :as " . alias . "]"
193193

194-
" TODO: Insert choice to :require form
194+
" 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
195199
endfunction
196200

197201
nnoremap <silent> <Plug>RefactorResolveMissing :<C-U>call <SID>resolve_missing()<CR>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.