akinsho / toggleterm.nvim

A neovim lua plugin to help easily manage multiple terminal windows
GNU General Public License v3.0
4.06k stars 170 forks source link

[BUG] toggle term does not respect venv #584

Closed itsmenewbie03 closed 2 months ago

itsmenewbie03 commented 2 months ago

Is there an existing issue for this?

Current Behavior

when i execute which pip inside toggleterm i get /bin/pip

Expected Behavior

the output should be the path to pip inside the active venv like ~/venv/bin/pip. this has worked completely fine before in nvim version 0.9

Steps To Reproduce

  1. create a blank directory
  2. create a python virtual env inside the newly created directory
  3. activate the virtualenv
  4. nvim .
  5. open toggleterm
  6. type which pip

Environment

- OS:EndeavourOS
- neovim version: 0.10
- Shell: zsh

Anything else?

image the left window is the result of :ter which pip

akinsho commented 2 months ago

@itsmenewbie03 this plug in is not actually in control of the terminal's behaviour. It's just a UI plugin so that the terminal looks nicer. How the terminal actually behaves is a neovim issue. I recommend raising an issue there if anything has changed, but that's definitely not coming from this plugin

itsmenewbie03 commented 2 months ago

@itsmenewbie03 this plug in is not actually in control of the terminal's behaviour. It's just a UI plugin so that the terminal looks nicer. How the terminal actually behaves is a neovim issue. I recommend raising an issue there if anything has changed, but that's definitely not coming from this plugin

Thank You 💜