From 1944ed578d4260dff0abce213b0d82abf75f767a Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 10 Oct 2019 17:54:03 +0200 Subject: [PATCH] [ADD][VIM] Use pyls in Pipenv with automatically ALE can detect if the file you're currently editing is inside a Pipenv environment, and use the pyls inside your environment to have access to module definitions. This doesn't launch pyls inside Pipenv when there's no environment active for your file. --- vim/.vim/ftplugin/python.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vim/.vim/ftplugin/python.vim b/vim/.vim/ftplugin/python.vim index b734f3f..061486b 100644 --- a/vim/.vim/ftplugin/python.vim +++ b/vim/.vim/ftplugin/python.vim @@ -3,6 +3,9 @@ let b:ale_fixers=[ 'black', 'isort' ] " Use my desired ALE linters for python let b:ale_linters=[ 'flake8', 'mypy', 'pylint', 'pyls' ] +"let b:ale_python_pyls_executable='pyls' +let b:ale_python_pyls_auto_pipenv=1 + " Disable pycodestyle checks from pyls because I'm already using flake8 let b:ale_python_pyls_config={ \ 'pyls': {