richin13 / asdf-neovim

Neovim plugin for asdf version manager (https://github.com/asdf-vm/asdf) and mise (https://mise.jdx.dev/)
MIT License
98 stars 14 forks source link

does not replace nvim command #18

Closed Alex23rodriguez closed 1 year ago

Alex23rodriguez commented 1 year ago

After installing a certain version and running asdf global neovim <version>, the system's nvim command doesn't get updated (neither do the vim or the vi commands).

The only way I can get the installed version to run is with asdf exec nvim

richin13 commented 1 year ago

Hello @Alex23rodriguez !

That sounds like your PATH might be sorted in a way that prioritizes system binaries rather than asdf's. In order to help you troubleshoot, can you share the output of:

echo "$PATH"
Alex23rodriguez commented 1 year ago

Hi! there was something weird going on on my mac, where asdf got added to PATH after the paths from /etc/paths and /etc/paths.d. It would consistently happen even if I changed my .zshrc. After resetting killing the tmux session and restarting my computer the problem went away and things got correctly added to the beginning of the PATH.

TLDR: the problem was indeed the PATH, and some long running tmux session.