petobens / poet-v

Vim Meets Poetry and Pipenv Virtual Environments
MIT License
88 stars 10 forks source link

Status Line symbol #21

Closed Tyrn closed 9 months ago

Tyrn commented 10 months ago

I'm so sorry,

Where does the poetv_statusline_symbol show? The plugin works ($ where python after :PoetvActivate shows exactly what I expect), but no visual trace in the status line. Curiously, the zsh console looks just like the system one, minus (venv).

BTW, I can't see the statusline symbol on your screenshot.

gokomer commented 9 months ago

I'm having the same issue.

petobens commented 9 months ago

If you use aerial it should be shown next to venv name. See the small terminal icon to the left of 20% in the README screenshot.

gokomer commented 9 months ago

This is how I installed both poet-v and airline. No config, just default settings.

use "petobens/poet-v"
use "vim-airline/vim-airline"

This is how it looks like after :PoetvActivate

image

Is there a config I should do in airline?

petobens commented 9 months ago

You might need let g:airline#extensions#poetv#enabled = 1?

gokomer commented 9 months ago

Now I get the Python3 is needed for poet-v to work. even tough poetry shell is active in the shell I call nvim ..

petobens commented 9 months ago

You probably need to add something like let g:python3_host_prog = '/usr/bin/python'

gokomer commented 9 months ago

Error is gone but still no status line. this is :AirlineExtensions output poetv 0 loaded

image

petobens commented 9 months ago

Did you try defining some symbol? let g:poetv_statusline_symbol = ' '?

Also try auto activating with let g:poetv_auto_activate = 1

gokomer commented 9 months ago

auto activate made it shown but no icon. after setting statusline_symbol it is working. Thank you.

petobens commented 9 months ago

Great!