added path to .bachrc. Works fine, But no code completion now in vs code.
I think I had a similar problem with .bashrc and VS Code, which I solved by removing that from .bashrc and adding a new file nim.sh to /etc/profile.d with this content:
PATH=/home/miran/.nimble/bin:$PATH
export PATH
(don't forget to change the path to be correct for you)
two separate files namely nim.sh and nimble.sh
No, you can have it in one file — I've edited my message above to show this.