aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vim/after/plugin/asyncomplete.vim12
-rw-r--r--.vim/after/plugin/deoplete.vim27
-rw-r--r--.vim/after/plugin/minpac.vim6
3 files changed, 14 insertions, 31 deletions
diff --git a/.vim/after/plugin/asyncomplete.vim b/.vim/after/plugin/asyncomplete.vim
new file mode 100644
index 0000000..380d873
--- /dev/null
+++ b/.vim/after/plugin/asyncomplete.vim
@@ -0,0 +1,12 @@
+if has('nvim')
+ finish
+endif
+
+inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
+inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
+inoremap <expr> <cr> pumvisible() ? asyncomplete#close_popup() : "\<cr>"
+
+let g:asyncomplete_auto_popup = 1
+
+packadd asyncomplete.vim
+packadd asyncomplete-lsp.vim
diff --git a/.vim/after/plugin/deoplete.vim b/.vim/after/plugin/deoplete.vim
deleted file mode 100644
index a422890..0000000
--- a/.vim/after/plugin/deoplete.vim
+++ /dev/null
@@ -1,27 +0,0 @@
-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)
-
-function! s:my_cr_function() abort
- return deoplete#close_popup() . "\<CR>"
-endfunction
-inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
diff --git a/.vim/after/plugin/minpac.vim b/.vim/after/plugin/minpac.vim
index a30e3ab..96222b4 100644
--- a/.vim/after/plugin/minpac.vim
+++ b/.vim/after/plugin/minpac.vim
@@ -55,10 +55,8 @@ function! InitMinpac() abort
\ })
endif
- call minpac#add('https://github.com/Shougo/deoplete.nvim', {'type': 'opt'})
- call minpac#add('https://github.com/roxma/nvim-yarp', {'type': 'opt'})
- call minpac#add('https://github.com/roxma/vim-hug-neovim-rpc', {'type': 'opt'})
- call minpac#add('https://github.com/lighttiger2505/deoplete-vim-lsp', {'type': 'opt'})
+ call minpac#add('https://github.com/prabirshrestha/asyncomplete.vim.git', {'type': 'opt'})
+ call minpac#add('https://github.com/prabirshrestha/asyncomplete-lsp.vim.git', {'type': 'opt'})
call minpac#add('https://github.com/ludovicchabant/vim-gutentags.git', {'type': 'opt'})
call minpac#add('https://github.com/easymotion/vim-easymotion.git')