linux-cultist / venv-selector.nvim

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

Error thrown if user is root #62

Closed GeraldIr closed 10 months ago

GeraldIr commented 10 months ago

In line 90 of system.lua in the function M.get_cache_default_path()

If the user is root and $USER is nil, the correct path should be returned as "/root/.cache/venv-selector/", currently it's throwing an error.

GeraldIr commented 10 months ago

https://github.com/linux-cultist/venv-selector.nvim/pull/63 I created a pull request for this here.

linux-cultist commented 10 months ago

Thank you! Merged.