Browse Source

增加了启动Vim时检查venv环境的插件配置

master
Kevin 2 months ago
parent
commit
f8aa4b8181
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      configs/plugins.vim

+ 4
- 1
configs/plugins.vim View File

@ -60,6 +60,9 @@ import sys
from pip._internal.cli.main import main as pip_main
if 'VIRTUAL_ENV' in os.environ:
pip_main(['install', 'pylint'])
try:
import pylint
except ImportError:
pip_main(['install', 'pylint'])
EOF

Loading…
Cancel
Save