Skip to content

Specify an arbitrary LSP binary #145

@bartekpacia

Description

@bartekpacia

Hi! Thank you for Zed and for this extension.

I'd like to not use jdtls, but be able to specify an arbitrary binary for Zed to start.

For example, for Kotlin extension, I can do this:

{
  "languages": {
    "Kotlin": {
      "language_servers": ["kotlin-lsp"]
    }
  },
  "lsp": {
    "kotlin-lsp": {
      "binary": {
        "path": "custom/location/for/kotlin-lsp",
        "arguments": ["--stdio"]
      }
    }
  }
}

I'd like to do the same for Java, but it seems that starting jdtls is hardcoded in the language_server_command function, and that currently there's no way to change it.

I'm new to Zed extensions and to Rust too, so it's possible I missed something.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions