deoplete source for vim-lsp
Old style sources like the old deoplete-vim-lsp have been deprecated. So the latest deoplete-vim-lsp will only work with the latest deoplete.nvim Please update deoplete-vim-lsp.
See commit
For vim-plug
Plug 'Shougo/deoplete.nvim'
Plug 'prabirshrestha/vim-lsp'
Plug 'lighttiger2505/deoplete-vim-lsp'
For dein.vim
call dein#add('Shougo/deoplete.nvim')
call dein#add('prabirshrestha/vim-lsp')
call dein#add('lighttiger2505/deoplete-vim-lsp')
let g:deoplete#enable_at_startup = 1
" For python language server
if (executable('pyls'))
let s:pyls_path = fnamemodify(g:python_host_prog, ':h') . '/'. 'pyls'
augroup LspPython
autocmd!
autocmd User lsp_setup call lsp#register_server({
\ 'name': 'pyls',
\ 'cmd': {server_info->['pyls']},
\ 'allowlist': ['python']
\ })
augroup END
endif
" For bingo(go language server)
if (executable('bingo'))
augroup LspGo
autocmd!
autocmd User lsp_setup call lsp#register_server({
\ 'name': 'go-lang',
\ 'cmd': {server_info->['bingo', '-disable-func-snippet', '-mode', 'stdio']},
\ 'allowlist': ['go'],
\ })
augroup END
endif