google / google/vim-maktaba

Poetry/pipenv support?

Open
#249 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
588
Forks
41
PR merge metrics
No merged PRs in 30d

Description

It would be amazing if this plugin could support pipenv/poetry!

I skimmed through the repo and I *think* the relevant [code is this part](https://github.com/google/vim-maktaba/blob/master/autoload/maktaba/python.vim#L69-L101)

Perhaps this code could check if `pyproject.toml` or `Pipfile` exists and then run `poetry run python `/`pipenv run python ` instead of `python `?

EDIT: For the record, I found this repo through `google/vim-coverage`. When running `:CoverageShow coverage.py` `import coverage` can't be found since it loads [this script](https://github.com/google/vim-coverage/blob/7175c97c44eb25ead260ee2c19a9fd6f98296308/python/vim_coverage.py#L18) through [this invocation](https://github.com/google/vim-coverage/blob/7175c97c44eb25ead260ee2c19a9fd6f98296308/autoload/coverage/python.vim#L55) led me that this should be a feature to this repo and not the `google/vim-coverage`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.