replace youcompleteme with asyncomplete and vim-lsp
This commit is contained in:
parent
7549adfaf6
commit
e6bb1ca27e
|
@ -76,10 +76,6 @@ Plugin 'mattn/emmet-vim'
|
||||||
" https://github.com/vimwiki/vimwiki
|
" https://github.com/vimwiki/vimwiki
|
||||||
Plugin 'vimwiki/vimwiki'
|
Plugin 'vimwiki/vimwiki'
|
||||||
"
|
"
|
||||||
" youcompleteme
|
|
||||||
" https://github.com/Valloric/YouCompleteMe
|
|
||||||
Plugin 'Valloric/YouCompleteMe'
|
|
||||||
"
|
|
||||||
" gitgutter
|
" gitgutter
|
||||||
" https://github.com/airblade/vim-gitgutter/blob/master/README.mkd
|
" https://github.com/airblade/vim-gitgutter/blob/master/README.mkd
|
||||||
Plugin 'airblade/vim-gitgutter'
|
Plugin 'airblade/vim-gitgutter'
|
||||||
|
@ -123,7 +119,22 @@ Plugin 'gregsexton/gitv'
|
||||||
" https://wakatime.com/vim
|
" https://wakatime.com/vim
|
||||||
Plugin 'wakatime/vim-wakatime'
|
Plugin 'wakatime/vim-wakatime'
|
||||||
|
|
||||||
|
" asyncomplerte.vim
|
||||||
|
" https://github.com/prabirshrestha/asyncomplete.vim
|
||||||
|
Plugin 'prabirshrestha/asyncomplete.vim'
|
||||||
|
Plugin 'yami-beta/asyncomplete-omni.vim'
|
||||||
|
Plugin 'prabirshrestha/asyncomplete-ultisnips.vim'
|
||||||
|
Plugin 'prabirshrestha/asyncomplete-file.vim'
|
||||||
|
Plugin 'prabirshrestha/asyncomplete-buffer.vim'
|
||||||
|
Plugin 'prabirshrestha/asyncomplete-tags.vim'
|
||||||
|
Plugin 'prabirshrestha/asyncomplete-lsp.vim'
|
||||||
|
Plugin 'Shougo/neco-vim'
|
||||||
|
Plugin 'prabirshrestha/asyncomplete-necovim.vim'
|
||||||
|
|
||||||
|
" vim-lsp
|
||||||
|
" https://github.com/prabirshrestha/vim-lsp
|
||||||
|
Plugin 'prabirshrestha/async.vim'
|
||||||
|
Plugin 'prabirshrestha/vim-lsp'
|
||||||
|
|
||||||
" All of your Plugins must be added before the following line
|
" All of your Plugins must be added before the following line
|
||||||
call vundle#end() " required
|
call vundle#end() " required
|
||||||
|
@ -135,6 +146,85 @@ filetype plugin indent on " required
|
||||||
|
|
||||||
" #plugin settings{{{
|
" #plugin settings{{{
|
||||||
|
|
||||||
|
" asyncomplete.vim
|
||||||
|
"{{{
|
||||||
|
let g:asyncomplete_auto_popup = 1
|
||||||
|
let g:asyncomplete_remove_duplicates = 1
|
||||||
|
|
||||||
|
" not working why?
|
||||||
|
let g:asyncomplete_min_chars = 3
|
||||||
|
|
||||||
|
augroup User asyncomplete_setup
|
||||||
|
autocmd!
|
||||||
|
|
||||||
|
autocmd! CompleteDone * if pumvisible() == 0 | pclose | endif
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
call asyncomplete#register_source(asyncomplete#sources#file#get_source_options({
|
||||||
|
\ 'name': 'file',
|
||||||
|
\ 'whitelist': ['*'],
|
||||||
|
\ 'priority': 99,
|
||||||
|
\ 'completor': function('asyncomplete#sources#file#completor')
|
||||||
|
\ }))
|
||||||
|
|
||||||
|
call asyncomplete#register_source(asyncomplete#sources#ultisnips#get_source_options({
|
||||||
|
\ 'name': 'ultisnips',
|
||||||
|
\ 'whitelist': ['*'],
|
||||||
|
\ 'priority': 95,
|
||||||
|
\ 'completor': function('asyncomplete#sources#ultisnips#completor'),
|
||||||
|
\ }))
|
||||||
|
|
||||||
|
call asyncomplete#register_source(asyncomplete#sources#necovim#get_source_options({
|
||||||
|
\ 'name': 'necovim',
|
||||||
|
\ 'whitelist': ['vim'],
|
||||||
|
\ 'priority': 90,
|
||||||
|
\ 'completor': function('asyncomplete#sources#necovim#completor'),
|
||||||
|
\ }))
|
||||||
|
|
||||||
|
call asyncomplete#register_source(asyncomplete#sources#buffer#get_source_options({
|
||||||
|
\ 'name': 'buffer',
|
||||||
|
\ 'whitelist': ['*'],
|
||||||
|
\ 'blacklist': ['go'],
|
||||||
|
\ 'priority': 80,
|
||||||
|
\ 'completor': function('asyncomplete#sources#buffer#completor'),
|
||||||
|
\ }))
|
||||||
|
|
||||||
|
call asyncomplete#register_source(asyncomplete#sources#omni#get_source_options({
|
||||||
|
\ 'name': 'omni',
|
||||||
|
\ 'whitelist': ['*'],
|
||||||
|
\ 'blacklist': ['c', 'cpp', 'html'],
|
||||||
|
\ 'priority': 70,
|
||||||
|
\ 'completor': function('asyncomplete#sources#omni#completor')
|
||||||
|
\ }))
|
||||||
|
|
||||||
|
call asyncomplete#register_source(asyncomplete#sources#tags#get_source_options({
|
||||||
|
\ 'name': 'tags',
|
||||||
|
\ 'whitelist': ['*'],
|
||||||
|
\ 'blacklist': ['vim'],
|
||||||
|
\ 'priority': 60,
|
||||||
|
\ 'completor': function('asyncomplete#sources#tags#completor'),
|
||||||
|
\ 'config': {
|
||||||
|
\ 'max_file_size': 50000000,
|
||||||
|
\ },
|
||||||
|
\ }))
|
||||||
|
|
||||||
|
"}}}
|
||||||
|
|
||||||
|
" vim-lsp
|
||||||
|
"{{{
|
||||||
|
augroup User lsp_setup
|
||||||
|
autocmd!
|
||||||
|
if executable('vls')
|
||||||
|
autocmd User lsp_setup call lsp#register_server({
|
||||||
|
\ 'name': 'vue',
|
||||||
|
\ 'cmd': {server_info->['vls']},
|
||||||
|
\ 'whitelist': ['vue'],
|
||||||
|
\ })
|
||||||
|
endif
|
||||||
|
|
||||||
|
augroup END
|
||||||
|
"}}}
|
||||||
|
|
||||||
" switch.vim
|
" switch.vim
|
||||||
"{{{
|
"{{{
|
||||||
let g:switch_mapping = '<space>-'
|
let g:switch_mapping = '<space>-'
|
||||||
|
@ -186,9 +276,6 @@ endif
|
||||||
"vim-wiki
|
"vim-wiki
|
||||||
let g:vimwiki_list = [{'path': '~/vimwiki/', 'path_html': '~/vimwiki_html/'}]
|
let g:vimwiki_list = [{'path': '~/vimwiki/', 'path_html': '~/vimwiki_html/'}]
|
||||||
|
|
||||||
" youcompleteme
|
|
||||||
let g:ycm_collect_identifiers_from_tags_files = 1
|
|
||||||
|
|
||||||
" emmet
|
" emmet
|
||||||
let g:user_emmet_leader_key=',,'
|
let g:user_emmet_leader_key=',,'
|
||||||
let g:user_emmet_settings = {
|
let g:user_emmet_settings = {
|
||||||
|
|
Loading…
Reference in New Issue