diff options
author | Guangxiong Lin <[email protected]> | 2022-06-05 13:01:02 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-06-05 13:01:02 +0800 |
commit | c1b2ff34508984f4f9ed40be72cd61f01b39b7a0 (patch) | |
tree | 28fe9752b5784fc5bf330e05c1c14a1b1d2c7ec2 /.vim/after/plugin/deoplete.vim | |
parent | 47be6a508c4150f8ef2627ae185c650c081c6bbf (diff) | |
download | dotfiles-c1b2ff34508984f4f9ed40be72cd61f01b39b7a0.tar.gz dotfiles-c1b2ff34508984f4f9ed40be72cd61f01b39b7a0.tar.bz2 dotfiles-c1b2ff34508984f4f9ed40be72cd61f01b39b7a0.zip |
Try deoplete and improve vim-lsp
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) |