All Projects → petobens → poet-v

petobens / poet-v

Licence: MIT license
Vim Meets Poetry and Pipenv Virtual Environments

Programming Languages

Vim Script
2826 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to poet-v

Dephell
📦 🔥 Python project management. Manage packages: convert between formats, lock, install, resolve, isolate, test, build graph, show outdated, audit. Manage venvs, build package, bump version.
Stars: ✭ 1,730 (+2935.09%)
Mutual labels:  poetry, pipenv
vim-tips-wiki
1500+ tips downloaded from Vim Tips Wiki, parsed and formatted to look and work like native Vim help files
Stars: ✭ 56 (-1.75%)
Mutual labels:  vim-plugin
vim-easydebugger
A VIM multi-language debugger plugin
Stars: ✭ 47 (-17.54%)
Mutual labels:  vim-plugin
CommentFrame.vim
Add Comments in Frames to the file you're editing, or Comments aligned on the Right side of a line. Customizable!
Stars: ✭ 42 (-26.32%)
Mutual labels:  vim-plugin
auto-pairs
Vim plugin, insert or delete brackets, parentheses, and quotes in pairs
Stars: ✭ 109 (+91.23%)
Mutual labels:  vim-plugin
passa
Resolver implementation and toolset for generating and interacting with Pipfile and Pipfile.lock.
Stars: ✭ 54 (-5.26%)
Mutual labels:  pipenv
vim-win
🖼️ A Vim plugin for managing windows.
Stars: ✭ 48 (-15.79%)
Mutual labels:  vim-plugin
filestyle
filestyle is a Vim plugin that highlights unwanted whitespace and characters.
Stars: ✭ 30 (-47.37%)
Mutual labels:  vim-plugin
denops-docker.vim
Manage Docker in Vim/Neovim
Stars: ✭ 48 (-15.79%)
Mutual labels:  vim-plugin
cookiecutter-modern-pypackage
Cookiecutter template for a modern Python package.
Stars: ✭ 97 (+70.18%)
Mutual labels:  poetry
vim-thematic
Alter Vim's appearance to suit your task & environ
Stars: ✭ 218 (+282.46%)
Mutual labels:  vim-plugin
swifty-vim
⌨️ A Vim plugin for Swift which provides file detection, syntax highlighting, support for compiling and running tests, and optional support for formatting and linting tools.
Stars: ✭ 18 (-68.42%)
Mutual labels:  vim-plugin
vim-counterpoint
Cycle between file counterparts in vim or neovim.
Stars: ✭ 12 (-78.95%)
Mutual labels:  vim-plugin
vim-sage
Vim plugin for SageMath (Sage) mathematics software system
Stars: ✭ 17 (-70.18%)
Mutual labels:  vim-plugin
zhihu-crawler
徒手实现定时爬取知乎,从中发掘有价值的信息,并可视化爬取的数据作网页展示。
Stars: ✭ 56 (-1.75%)
Mutual labels:  pipenv
vim-textobj-sentence
Improving on Vim's native sentence text object and motion
Stars: ✭ 92 (+61.4%)
Mutual labels:  vim-plugin
42header.vim
Add and update the 42 comment header at the top of your files
Stars: ✭ 15 (-73.68%)
Mutual labels:  vim-plugin
cosme.vim
Cosmetic color scheme for Vim
Stars: ✭ 63 (+10.53%)
Mutual labels:  vim-plugin
denops-gh.vim
Vim/Neovim plugin for GitHub
Stars: ✭ 27 (-52.63%)
Mutual labels:  vim-plugin
uxntal.vim
Uxntal support for Vim
Stars: ✭ 32 (-43.86%)
Mutual labels:  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:

  • PoetvActivate: activates the corresponding poetry or pipenv venv (see below for details regarding order) and enforces jedi (and deoplete-jedi) to use it (if jedi-vim/deoplete-jedi is installed).
  • PoetvDeactivate: deactivates the current venv.

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:

  • g:poetv_executables = ['poetry', 'pipenv']
    • (Ordered) list of dependency managers to be used when attempting to activate a venv (or switch between existing ones).
  • g:poetv_auto_activate = 0
    • If set to 1 poet-v will attempt to automatically activate a venv (or switch between existing ones) when entering a python window.
  • g:poetv_statusline_symbol = ''
    • Symbol to be displayed after venv name returned by poetv#statusline() function.
  • g:poetv_set_environment = 1
    • If set to 1 poet-v will set the $VIRTUAL_ENV and $PATH environment variables when a venv gets activated.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].