python: configure provider inside a virtualenv

This should helps autocomplete and linting for python, when working
inside a virtualenv in which no python-neovim is installed.

Co-Authored-by: Igor Milhit <igor@milhit.ch>
server
iGor milhit 2020-05-20 20:45:57 +02:00
parent 8e4a32e385
commit 17af06c00a
1 changed files with 3 additions and 0 deletions

View File

@ -155,6 +155,9 @@ let g:jedi#completions_enabled = 0
" open the go-to function in split, not another buffer
let g:jedi#use_splits_not_buffers = "right"
" Python provider in a pyenv
let g:python3_host_prog = '/home/igor/.pyenv/versions/neovim3/bin/python'
" Python linting
let g:neomake_python_enabled_makers = ['flake8']