Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for UnoCSS #2550

Open
MrFoxPro opened this issue Nov 10, 2024 · 3 comments
Open

Add support for UnoCSS #2550

MrFoxPro opened this issue Nov 10, 2024 · 3 comments

Comments

@MrFoxPro
Copy link

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

@jwortmann
Copy link
Member

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.

@MrFoxPro
Copy link
Author

MrFoxPro commented Nov 11, 2024

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.

@rchl
Copy link
Member

rchl commented Nov 11, 2024

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

@rchl rchl reopened this Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants