LSP
LSP copied to clipboard
Add support for UnoCSS
UnoCSS: https://github.com/unocss/unocss It should be similiar to tailwindcss plugin. Example plugin for nvim
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.
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.
Feel free to submit PR that updates https://github.com/sublimelsp/LSP/blob/main/docs/src/language_servers.md based on examples there.