nvim: init.vim: Update deoplete options
This commit is contained in:
parent
bbecfe66ca
commit
6a445e6685
1 changed files with 8 additions and 10 deletions
|
@ -439,24 +439,22 @@ let g:hoogle_search_count = 30
|
|||
|
||||
" Use deoplete
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
" Disable autocomplete by default
|
||||
" let b:deoplete_disable_auto_complete = 1
|
||||
" let g:deoplete_disable_auto_complete = 1
|
||||
" Let sources be empty by default
|
||||
let g:deoplete#sources = {}
|
||||
" Disable the candidates in Comment/String syntaxes.
|
||||
call deoplete#custom#source('_',
|
||||
\ 'disabled_syntaxes', ['Comment', 'String'])
|
||||
call deoplete#custom#option('sources', {
|
||||
\ '_' : ['buffer', 'tag'],
|
||||
\ '_' : ['buffer', 'tag', 'around', 'file', 'member'],
|
||||
\ 'rust': ['racer'],
|
||||
\})
|
||||
\})
|
||||
call deoplete#custom#option({
|
||||
\ 'auto_complete_delay': 200,
|
||||
\ 'auto_complete': v:true,
|
||||
\ 'smart_case': v:true,
|
||||
\ })
|
||||
let g:deoplete#sources#rust#disable_keymap = 1
|
||||
let g:deoplete#sources#rust#racer_binary=expand('$HOME/.cargo/bin/racer')
|
||||
let g:deoplete#sources#rust#rust_source_path=expand('$HOME/GitSources/rust/src')
|
||||
let g:rustfmt_autosave = 1
|
||||
" Required by Semshi
|
||||
let g:deoplete#auto_complete_delay = 100
|
||||
|
||||
" Use airline
|
||||
let g:airline#extensions#tabline#enabled = 1
|
||||
|
|
Loading…
Reference in a new issue