diff options
Diffstat (limited to '.vim/after/plugin/deoplete.vim')
-rw-r--r-- | .vim/after/plugin/deoplete.vim | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.vim/after/plugin/deoplete.vim b/.vim/after/plugin/deoplete.vim new file mode 100644 index 0000000..d478aba --- /dev/null +++ b/.vim/after/plugin/deoplete.vim @@ -0,0 +1,22 @@ +if has('nvim') + finish +endif + +inoremap <silent><expr><tab> pumvisible() ? "\<c-n>" : "\<tab>" +inoremap <silent><expr><s-tab> pumvisible() ? "\<c-p>" : "\<s-tab>" + +let g:deoplete#enable_at_startup = 1 + +packadd nvim-yarp +packadd vim-hug-neovim-rpc +packadd deoplete.nvim +packadd deoplete-vim-lsp + +call deoplete#custom#option({ + \ 'smart_case': v:true, + \ 'min_pattern_length': 1, + \ 'yarp': v:true, + \ }) + +call deoplete#custom#source('ultisnips', 'rank', 1000) +call deoplete#custom#source('lsp', 'rank', 900) |