vim: Add python lsp

This commit is contained in:
Sijmen 2018-11-23 15:02:18 +01:00
parent 339515bd81
commit 27a1bb58c2

View file

@ -21,14 +21,17 @@ Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'godlygeek/tabular'
Plug 'guns/xterm-color-table.vim'
Plug 'majutsushi/tagbar'
Plug 'prabirshrestha/vim-lsp'
Plug 'scrooloose/syntastic'
Plug 'tpope/vim-sleuth'
Plug 'prabirshrestha/vim-lsp'
Plug 'tpope/vim-surround'
" Language support
Plug 'artur-shaik/vim-javacomplete2'
Plug 'cespare/vim-toml'
Plug 'hsanson/vim-android'
Plug 'justmao945/vim-clang'
Plug 'martinda/Jenkinsfile-vim-syntax'
Plug 'mitsuhiko/vim-jinja'
Plug 'natebosch/vim-lsc'
Plug 'plasticboy/vim-markdown'
@ -36,7 +39,6 @@ Plug 'posva/vim-vue'
Plug 'rust-lang/rust.vim'
Plug 'tikhomirov/vim-glsl'
Plug 'udalov/kotlin-vim'
Plug 'artur-shaik/vim-javacomplete2'
call plug#end()
@ -227,6 +229,16 @@ let g:syntastic_cpp_compiler_options = '-std=c++17 -Wall -Wextra -pedantic'
\ })
endif
" Python
if executable('pyls')
" pip install python-language-server
au User lsp_setup call lsp#register_server({
\ 'name': 'pyls',
\ 'cmd': {server_info->['pyls']},
\ 'whitelist': ['python'],
\ })
endif
" <Tab> completion:
" 1. If popup menu is visible, select and insert next item
" 2. Otherwise, if within a snippet, jump to next input