chroma-ls-0.2.0 is not a library.
Visit the last successful build:
chroma-ls-1.0.0
chroma-ls
Tiny LSP server for highlighting color literals in source files. It implements only the textDocument/documentColor method. Designed for simplicity and performance - re-parses minimally and efficiently handles incremental document updates.
Installation
Using cargo
Editor Configuration
Neovim
Create lsp/chroma_ls.lua:
---@type vim.lsp.Config
return
With no filetypes provided, it will be active in all buffers.
Enable the LSP:
vim..
Helix
In languages.toml:
[]
= "chroma-ls"
Helix does not currently support assigning an LSP globally to all filetypes. You need to specify the languages explicitly. For example:
[[]]
= "json"
= [ "chroma-ls" ]