LSP icon indicating copy to clipboard operation
LSP copied to clipboard

Support ty (python typechecker)

Open silverwind opened this issue 7 months ago • 1 comments

Is your feature request related to a problem? Please describe. ty is an upcoming typechecker for python which will include a LSP server.

Describe the solution you'd like A LSP-ty plugin.

Describe alternatives you've considered None

Additional context None

silverwind avatar May 09 '25 01:05 silverwind

For now you can manually download the ty executable from the linked repository and add a basic config into your LSP settings to make it work:

{
    "clients": {
        "ty": {
            "enabled": true,
            "command": ["C:\\path\\to\\ty.exe", "server"], // Windows
            "selector": "source.python",
        },
    }
}

At a first glance the server seems to support diagnostics, inlay hints and hover. The hover popups don't seem to be very useful yet, however the ty project apparently is in a very early stage though.

jwortmann avatar May 09 '25 11:05 jwortmann

Actually, I find it very convenient to add LSP via such configuration as mentioned above!

Very concise and does not require installing any plugins, relying on when they update (not to pick on plugin developers, but that happens sometimes).

And nowadays it is extremely easy to install tools like ty, with Astral's uv tool install ty.

senpos avatar Sep 12 '25 19:09 senpos

There exists https://packages.sublimetext.io/packages/LSP-ty now.

rchl avatar Nov 02 '25 10:11 rchl