File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -165,23 +165,21 @@ function! s:ReadyCursorDoc()
165
165
endfunction
166
166
command ! DocCursor call s: ReadyCursorDoc ()
167
167
168
- function ! s: Source ()
168
+ function ! s: Source (symbol )
169
169
ReplLog
170
- call inputsave ()
171
- let symbol = input (' Source for: ' )
172
- call inputrestore ()
173
- let res = rpcnotify (g: nvim_tcp_plugin_channel , ' source' , [symbol])
170
+ let res = rpcnotify (g: nvim_tcp_plugin_channel , ' source' , [a: symbol ])
174
171
return res
175
172
endfunction
176
173
177
- function ! s: ReadySource ()
174
+ function ! s: ReadySource (symbol )
178
175
if g: socket_repl_plugin_ready == 1
179
- call s: Source ()
176
+ call s: Source (a: symbol )
180
177
else
181
178
echo s: not_ready
182
179
endif
183
180
endfunction
184
181
command ! Source call s: ReadySource ()
182
+ command ! - bar -nargs =1 -complete =customlist ,socketrepl#eval_complete Source :exe s: ReadySource (<q-args> )
185
183
186
184
function ! s: SourceCursor ()
187
185
ReplLog
You can’t perform that action at this time.
0 commit comments