diff --git a/.vim/ftplugin/python.vim b/.vim/ftplugin/python.vim index 3dc65df4c7d810c3dc00176486a15fb512b1eee7..281a8f61bd44a6fbbdf766ed1a4cbe87c989f837 100644 --- a/.vim/ftplugin/python.vim +++ b/.vim/ftplugin/python.vim @@ -51,7 +51,8 @@ let b:ropevim_prefer_py3=1 let python_highlight_all=1 " " Check Python files with flake8 and pylint. -let b:ale_linters = ['pyls', 'flake8', 'pylint', 'bandit', 'mypy', 'prospector', 'pycodestyle', 'pydocstyle', 'pyflakes', 'pylama', 'pyre', 'vulture'] +let b:ale_linters = ['pyls'] +" , 'flake8', 'pylint', 'bandit', 'mypy', 'prospector', 'pycodestyle', 'pydocstyle', 'pyflakes', 'pylama', 'pyre', 'vulture'] " Fix Python files black. let b:ale_fixers = ['black', 'isort', 'remove_trailing_lines', 'reorder-python-imports', 'trim_whitespace', 'add_blank_lines_for_python_control_statements'] diff --git a/.vimrc b/.vimrc index a43af2f8e9aaa66e27bf36d951048327dd14d74a..8b9725b843d7b490919486ef63ba302d6b54a93c 100644 --- a/.vimrc +++ b/.vimrc @@ -17,8 +17,20 @@ Plug 'jpalardy/vim-slime' Plug 'tpope/vim-surround' Plug 'tpope/vim-vividchalk' Plug 'vimwiki/vimwiki' +Plug 'prabirshrestha/async.vim' +Plug 'prabirshrestha/vim-lsp' " call plug#end() + +if executable('pyls') + au User lsp_setup call lsp#register_server({ + \ 'name': 'pyls', + \ 'cmd': {server_info->['pyls']}, + \ 'whitelist': ['python'], + \ }) +endif + + " }}} " Configuration settings ------------------{{{