Skip to main content

Utility script for installing (some) LSP servers

Project description

LSP installer

Utility script for installing various LSPs, because software packaging standards still fucking suck.

Warning: this is an experimental script that has not been extensively tested. Use with caution. It was hacked together in a single evening/night, and likely has multiple, large problems.

Requirements

  • Python 3.10+
  • Linux or Windows (though Windows support may be limited)
    • macOS is intentionally not supported

Additionally, the following tools are used, but are optional unless you install packages that depend on it:

  • npm

FAQ

What LSP servers are supported, and how do I install them?

See lspinstaller list, or lspinstaller/data/sources.py if you would like to check before installing.

To install a server, run lspinstaller install server-name, where server-name corresponds to one of the servers from the list. The install command can take any number of LSPs at once, so if you want to install several, you can append them to the command.

How are the servers installed?

Depending on availability:

  1. Binary install
  2. Npm install

System package managers are not supported; if you can install via a system package manager, do that instead. This script exists for operating systems where there are no package manager, the package manager doesn't include a given LSP, or the OS is debian-based (or follows a debian-like idiology) where the LSPs that are available are heavily out of date.

Where are the servers installed, and how do I use them?

They're installed to ~/.local/share/lsp/. This applies to both Windows and Linux.

Eventually, there will likely be a ~/.local/share/lsp/bin directory that contains all the non-npm LSPs, but this currently does not work for whatever fucking reason. With clangd, this manifests as limits.h missing. This was observed when the exact same binary breaks when referencing a symlink location, and breaking when referencing the real location. It's unclear why this is the case, and if it can be fixed.

In the meanwhile, you need to explicitly specify the full path, and keep track of it yourself. For example:

  • Clangd is installed to ~/.local/share/lsp/clangd/bin/clangd
  • kotlin-lsp is installed to ~/.local/share/lsp/kotlin-lsp/bin/kotlin-lsp.sh

The name used for the install command matches the subfolder name in ~/.local/share/lsp/.

It is still a manual process though, so it's strongly recommended that you automate it once so you don't have to touch it again. The locations are guaranteed to never change incompatibly.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lspinstaller-0.0.2.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lspinstaller-0.0.2-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file lspinstaller-0.0.2.tar.gz.

File metadata

  • Download URL: lspinstaller-0.0.2.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for lspinstaller-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a0751f327af1d8eac15d5d77a754ca49b84c9c965d6d251cb9865215c379f0b8
MD5 7eabab61ad077d832407ed5feb7a052a
BLAKE2b-256 26ec4527c909666a7ff134d64a801595d1a13ac339d43b8987a0f417f684cd2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for lspinstaller-0.0.2.tar.gz:

Publisher: release.yaml on LunarWatcher/lspinstaller

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lspinstaller-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: lspinstaller-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for lspinstaller-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cd11166a80f0d52ac949ccbb04beed1568fc87198238077b316683011728e01a
MD5 2210989db2ac9b8e32a57604e29b4c62
BLAKE2b-256 ed5cea9a4482d41c4635fe09dd632d5c0e0b8601f974401091009ef05ba98809

See more details on using hashes here.

Provenance

The following attestation bundles were made for lspinstaller-0.0.2-py3-none-any.whl:

Publisher: release.yaml on LunarWatcher/lspinstaller

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page