Repository navigation
fix(python): add ft="python" to venv-selector for auto-load on Python files - #1785
syltharion wants to merge 1 commit into
Conversation
… files Closes AstroNvim#1780 venv-selector.nvim was only configured with , meaning it would not load when opening a Python file. This prevented cached virtual environments from being automatically restored. Adding ensures the plugin loads on Python filetype detection, allowing cached venv auto-activation without manual <Leader>lv invocation.
Review ChecklistDoes this PR follow the [Contribution Guidelines](development guidelines)? Following is a partial checklist: Proper conventional commit scoping:
|
Summary
Adds
ft = "python"to thevenv-selector.nvimplugin spec inpack.python.baseso it lazy-loads when opening a Python file.Problem
Currently
venv-selector.nvimonly hascmd = "VenvSelect", meaning it only loads when the user manually triggers the command. This prevents cached virtual environments from being automatically restored when opening a Python project.Fix
Adding
ft = "python"ensures the plugin loads on Python filetype detection, allowing cached venv auto-activation without manual<Leader>lvinvocation.Closes #1780