Skip to content

lighttiger2505/deoplete-vim-lsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/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')

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']},
      \ '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

About

deoplete source for vim-lsp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published