Skip to content

fix(windows): use “;” + \Scripts when prepending venv to PATH#8

Open
chenggouA wants to merge 2 commits intobenomahony:mainfrom
chenggouA:main
Open

fix(windows): use “;” + \Scripts when prepending venv to PATH#8
chenggouA wants to merge 2 commits intobenomahony:mainfrom
chenggouA:main

Conversation

@chenggouA
Copy link
Copy Markdown

Problem

On Windows, uv.nvim prepends the virtual‑env path to PATH like this:
D:\proj.venv/bin:C:\Users\me\AppData\Local\nvim-data\mason\bin;...

@gokulyc
Copy link
Copy Markdown

gokulyc commented Aug 4, 2025

When will this PR will be merged.

Also, Can we use below code check the OS instead

	local is_windows = vim.fn.has "win32" == 1
	local venv_dir = is_windows and 'Scripts' or 'bin'
	local sep = is_windows and ';' or ':'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants