feat(lsp): show color preview in completion items #32138

Problem: Color completion items display as plain text without visual preview

Solution: Parse RGB/hex colors from documentation and render with colored symbol ■
This commit is contained in:
glepnir
2026-02-28 23:02:52 +08:00
committed by GitHub
parent c1e60f36f3
commit 3e8a4e1092
3 changed files with 64 additions and 1 deletions

View File

@@ -315,6 +315,7 @@ LSP
• Support for `workspace/codeLens/refresh`:
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#codeLens_refresh
• `gx` will use `textDocument/documentLink` if available.
• |vim.lsp.completion.enable()| adds colored symbol preview for color items.
LUA