From c1b2ff34508984f4f9ed40be72cd61f01b39b7a0 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 5 Jun 2022 13:01:02 +0800 Subject: Try deoplete and improve vim-lsp --- .vim/after/plugin/deoplete.vim | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .vim/after/plugin/deoplete.vim (limited to '.vim/after/plugin/deoplete.vim') 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 pumvisible() ? "\" : "\" +inoremap pumvisible() ? "\" : "\" + +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) -- cgit v1.2.3