superlou / lapce-python

Python LSP plugin for the Lapce editor
MIT License
22 stars 4 forks source link

Plugin should not require executable in plugin.toml #2

Closed superlou closed 2 years ago

superlou commented 2 years ago

The plugin should first look for common language servers in the path, e.g. pylsp and jedi-language-server. This will help avoid committing personal user directories in configuration.executable to this repository.

superlou commented 2 years ago

Something like which could help, but it shouldn't even be necessary if the executables are in the path.

Edit: Unfortunately the which crate is blocked from being used in WASI by https://github.com/harryfei/which-rs/issues/31.

superlou commented 2 years ago

Fixed by using system LSP from PATH.