petobens / poet-v

Vim Meets Poetry and Pipenv Virtual Environments
MIT License
88 stars 10 forks source link
pipenv poetry python vim vim-plugin

Poet-v

Poet-v is a vim/nvim plugin that detects and activates virtual environments in your python poetry or pipenv project.

It is inspired (and closely resembles) both vim-virtualenv and its pipenv spin-off vim-pipenv. However it also adds the ability to interact with virtual environments created by poetry and integrates nicely with jedi-vim (and deoplete-jedi).

Installation

Install using your preferred package manager. For example using dein.vim:

call dein#add('petobens/poet-v')

Usage (commands)

Poet-v provides just two commands:

There is also a function, poetv#statusline(), that retrieves the current venv name. It can be used for instance to display such information in the statusline (poet-v in fact employs this to provide out of the box integration with vim-airline).

Configuration (options)

The following variables (along with their default values) control poet-v behaviour: