Skip to content

Commit

Permalink
remove override. source var is enough.
Browse files Browse the repository at this point in the history
  • Loading branch information
roxma committed Jul 14, 2018
1 parent a2b8a19 commit 5bfefb0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions autoload/ncm2_racer.vim
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ let s:loaded = 1

let g:ncm2_racer#proc = yarp#py3('ncm2_racer')

let g:ncm2_racer#source = get(g:, 'ncm2_racer#source', {
let g:ncm2_racer#source = extend(
\ get(g:, 'ncm2_racer#source', {}), {
\ 'name': 'racer',
\ 'priority': 9,
\ 'mark': 'rs',
Expand All @@ -16,11 +17,7 @@ let g:ncm2_racer#source = get(g:, 'ncm2_racer#source', {
\ 'complete_pattern': ['\.', '::'],
\ 'on_complete': 'ncm2_racer#on_complete',
\ 'on_warmup': 'ncm2_racer#on_warmup',
\ })

let g:ncm2_racer#source = extend(g:ncm2_racer#source,
\ get(g:, 'ncm2_racer#source_override', {}),
\ 'force')
\ }, 'keep')

func! ncm2_racer#init()
call ncm2#register_source(g:ncm2_racer#source)
Expand Down

0 comments on commit 5bfefb0

Please sign in to comment.