@yummacss/language-server
Advanced tools
+3
-3
| { | ||
| "name": "@yummacss/language-server", | ||
| "version": "3.28.2", | ||
| "version": "3.28.3", | ||
| "description": "Language server for Yumma CSS - completion, hover, diagnostics, color decorators, and sorting for any LSP-compatible editor", | ||
@@ -40,4 +40,4 @@ "keywords": [ | ||
| "vscode-languageserver-textdocument": "^1.0.12", | ||
| "@yummacss/intellisense": "3.28.2", | ||
| "@yummacss/nitro": "3.28.2" | ||
| "@yummacss/intellisense": "3.28.3", | ||
| "@yummacss/nitro": "3.28.3" | ||
| }, | ||
@@ -44,0 +44,0 @@ "publishConfig": { |
+6
-15
| # @yummacss/language-server | ||
| Language server for [Yumma CSS](https://yummacss.com). Brings completion, hover, unknown-class diagnostics, conflict detection, color decorators, and class sorting to any editor that speaks the Language Server Protocol - Zed, Neovim, Helix, Sublime Text, and more. | ||
| Language Server Protocol implementation for [Yumma CSS](https://yummacss.com). | ||
| This is the same engine behind the [VS Code extension](https://marketplace.visualstudio.com/items?itemName=yumma-css.yummacss-intellisense), exposed over LSP instead of the VS Code API. Both consume `@yummacss/intellisense`, so features never drift between editors. | ||
| Brings completion, hover, diagnostics, color decorators, and class sorting to any LSP-compatible editor. | ||
| ## Usage | ||
| Most users will get this through an editor extension (e.g. the Zed extension) rather than running it directly. To run it manually: | ||
| ```bash | ||
@@ -15,13 +13,2 @@ npx @yummacss/language-server --stdio | ||
| The server communicates over stdio and expects the client to send a standard LSP `initialize` request. It looks for `yumma.config.mjs` in the first workspace folder and reloads it automatically on change. | ||
| ## Capabilities | ||
| - `textDocument/completion` - class name completion inside `class`/`className` attributes. | ||
| - `textDocument/hover` - the generated CSS declaration for the class under the cursor. | ||
| - `textDocument/publishDiagnostics` - warns on conflicting utilities (e.g. two classes setting the same property) and classes that are not part of the Yumma CSS canon, with "Did you mean" suggestions. | ||
| - `textDocument/codeAction` - quick fixes for both diagnostic kinds. | ||
| - `textDocument/documentColor` - color swatches for color utilities. | ||
| - `textDocument/formatting` - sorts classes in a document (bind to your editor's "Format Document" action). | ||
| ## Programmatic API | ||
@@ -36,1 +23,5 @@ | ||
| ``` | ||
| ## Documentation | ||
| Learn more at [yummacss.com](https://yummacss.com) |
5712
-18.05%26
-25.71%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated