LSP icon indicating copy to clipboard operation
LSP copied to clipboard

Add support for UnoCSS

Open MrFoxPro opened this issue 1 year ago • 3 comments

UnoCSS: https://github.com/unocss/unocss It should be similiar to tailwindcss plugin. Example plugin for nvim

MrFoxPro avatar Nov 10 '24 23:11 MrFoxPro

See https://github.com/sublimelsp/LSP/issues/2551#issuecomment-2467382633

Here it looks like the config would be something like

{
    "clients": {
        "UnoCSS": {
            "enabled": true,
            "command": ["unocss-language-server", "--stdio"],
            "selector": "source.css"
        },
    }
}

A separate package similar to LSP-tailwindcss could be created to automatically install & update the server. This would also allow to handle custom requests if that is applicable to this server (probably not necessary). We could create a new LSP-UnoCSS repository under the sublimelsp organization if desired, but someone would need to maintain it.

jwortmann avatar Nov 11 '24 07:11 jwortmann

See #2551 (comment)

Here it looks like the config would be something like

{
    "clients": {
        "UnoCSS": {
            "enabled": true,
            "command": ["unocss-language-server", "--stdio"],
            "selector": "source.css"
        },
    }
}

A separate package similar to LSP-tailwindcss could be created to automatically install & update the server. This would also allow to handle custom requests if that is applicable to this server (probably not necessary). We could create a new LSP-UnoCSS repository under the sublimelsp organization if desired, but someone would need to maintain it.

Wow, that works, thanks! I looked into docs and I didn't realize that its called "Clients", I searched for "Custom server" or something like that.

MrFoxPro avatar Nov 11 '24 14:11 MrFoxPro

Feel free to submit PR that updates https://github.com/sublimelsp/LSP/blob/main/docs/src/language_servers.md based on examples there.

rchl avatar Nov 11 '24 14:11 rchl