Skip to content
deoplete source for vim-lsp
Python Vim script
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
autoload Modify logic for lsp requested completion Sep 23, 2019
plugin
rplugin/python3/deoplete/sources
.gitignore
LICENSE
README.md

README.md

deoplete-vim-lsp

deoplete source for vim-lsp

Warning

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

Install

requirements

.vimrc

For vim-plug

Plug 'Shougo/deoplete.nvim'
Plug 'prabirshrestha/async.vim'
Plug 'prabirshrestha/vim-lsp'

Plug 'lighttiger2505/deoplete-vim-lsp'

For dein.vim

call dein#add('Shougo/deoplete.nvim')
call dein#add('prabirshrestha/async.vim')
call dein#add('prabirshrestha/vim-lsp')

call dein#add('lighttiger2505/deoplete-vim-lsp')

setting example

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']},
      \ 'whitelist': ['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']},
     \ 'whitelist': ['go'],
     \ })
    augroup END
endif
You can’t perform that action at this time.