Improve vim source

This commit is contained in:
hrsh7th
2021-09-14 01:16:49 +09:00
parent 6173796b2b
commit 03f121fa23
3 changed files with 11 additions and 15 deletions

View File

@@ -47,9 +47,9 @@ endfunction
"
" cmp#_method
"
function! cmp#_method(id, method, args) abort
function! cmp#_method(bridge_id, method, args) abort
try
let l:source = s:sources[a:id]
let l:source = s:sources[a:bridge_id]
if a:method ==# 'is_available'
return l:source[a:method]()
elseif a:method ==# 'get_debug_name'