linux-cultist / venv-selector.nvim

Allows selection of python virtual environment from within neovim
MIT License
378 stars 40 forks source link

[regexp] Disable notification #119

Closed steakhutzeee closed 1 month ago

steakhutzeee commented 1 month ago

Hi,

is there a way to disable notification on activation? For main branch there is notify_user_on_activate but that looks like not working with the new branch.

Thanks!

linux-cultist commented 1 month ago

Not yet but that's easy to add, will do it this weekend. Thanks for the feedback! Let me know anything else you think can be improved. Always nice.

steakhutzeee commented 1 month ago

Thank you!

A handy addition would be to have the notification only when the venv changes. So if I open a file I see the notification and if I open another file using the same venv I do not see it. Don't know if it's feasible.

linux-cultist commented 1 month ago

I added the config option notify_user_on_venv_activation that can be set to false to avoid the message. :)

In theory its possible to keep a list of previous opened venvs and just notify if its a new venv, but not sure if its worth the extra code. Also I suspect some people will probably report it as a bug if it only notifies sometimes and they didnt read about all the options.... :)

steakhutzeee commented 1 month ago

Just tested. Thank you very much :D