Does Kate support multiple language servers for one language?

Hi everyone.

I program in Python, of which there are two recent rust-based language servers: ty and ruff. They are both created by Astral, and in their docs, they are recommended to go together. However, I don’t know how to run them together in Kate’s LSP settings.

Currently, I have:

{
  "python": {
    "command": [
      "ty"
    ],
    "url": "https://github.com/python-lsp/python-lsp-server",
    "highlightingModeRegex": "^Python$"
  }
}

How do I add ruff? Thanks!

There is no support for multiple language servers.

I see, it looks like I’ll switch back to VSCode anywathen. Thanks!

You can add multiple language servers through an LSP multiplexer such as Rassumfrassum (I can’t link to it because my account here is too young, I guess, but it’s easy to find with that name).

The config would be like this:

{
    "servers": {
        "python": {
        "command": ["rass","python"],
        "url": "https://www.npmjs.com/package/pyright",
        "highlightingModeRegex": "^Python$",
        "settings": {}
        }
    }
}

Instead of the rass python preconfigured profile you can also mix and match any tools you like (ruff, mypy, basedpyright, etc.)