From 17af06c00a5a0e71b0d9151999211113fd4916b6 Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Wed, 20 May 2020 20:45:57 +0200 Subject: [PATCH] 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 --- init.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.vim b/init.vim index 82bc0eb..2e4d688 100644 --- a/init.vim +++ b/init.vim @@ -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']