Skip to content

Commit

Permalink
use yarp.on_load and ncm2#set_ready
Browse files Browse the repository at this point in the history
roxma committed Jul 28, 2018
1 parent 7837244 commit e3aec08
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion autoload/ncm2_racer.vim
Original file line number Diff line number Diff line change
@@ -3,11 +3,15 @@ if get(s:, 'loaded', 0)
endif
let s:loaded = 1

let g:ncm2_racer#proc = yarp#py3('ncm2_racer')
let g:ncm2_racer#proc = yarp#py3({
\ 'module': 'ncm2_racer',
\ 'on_load': { -> ncm2#set_ready(g:ncm2_racer#source)}
\ })

let g:ncm2_racer#source = extend(
\ get(g:, 'ncm2_racer#source', {}), {
\ 'name': 'racer',
\ 'ready': 0,
\ 'priority': 9,
\ 'mark': 'rs',
\ 'early_cache': 1,

0 comments on commit e3aec08

Please sign in to comment.