How to configure for locally installed language servers?
benfrain opened this issue · comments
Ben Frain commented
On my work machines we are unable to access npm.
Therefore, my local versions of my LSPs are installed here: $HOME/.local/share/nvim/spec/node_modules/.bin:$PATH
Is there a way to configure LSP-typescript (or even the LSP package in general) to look here for the language servers?
I have already updated my .zshrc with this and the LSPs work fine in Neovim.
export PATH="$HOME/.local/share/nvim/spec/node_modules/.bin:$PATH"
Here is the output from the ST console:
>>> import os;
>>> os.environ["PATH"]
'/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin'
Ben Frain commented
Realise this will be better dealt with in Discord