sublimelsp / LSP-typescript

TypeScript, JavaScript support for Sublime LSP plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to configure for locally installed language servers?

benfrain opened this issue · comments

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'

Realise this will be better dealt with in Discord