#completion #text-document #helix #editor #com #pull #document-color

bin+lib uwu_colors

simple language server to colorize hex color strings via textDocument/documentColor

1 unstable release

Uses new Rust 2024

0.4.0 May 12, 2025

#108 in Text editors

Download history 105/week @ 2025-05-07 44/week @ 2025-05-14

149 downloads per month

Unlicense

52KB
1.5K SLoC

uwu-colors

a simple language server that i made mainly for helix because of https://github.com/helix-editor/helix/pull/12308

first screenshot demonstrating usage in a nix file inside helix

second screenshot demonstrating variable completions

third screenshot demonstrating help message

features

uwu-colors sends textDocument/documentColor request on hex color strings like "#ABC", "#abcd", '#AaBbCc', '#AABBCCDD'

it also provides various completions

completions

named color completions are enabled by default - uppercase hex colors from https://www.colorhexa.com/color-names

variable completions can be enabled using a flag

options and flags

--named-completions-mode:

  • upper completes with uppercase hex strings
  • lower - with lowercase strings
  • full - both with lowercase strings and uppercase strings using uppercase names
  • none disables completions

--color-collection:

  • colorhexa - named colors from ColorHexa
  • css - named CSS colors

--variable-completions - enables variable completions like on the second screenshot

installation

you can use it as a flake

  1. add it to your system's inputs
  2. overlay it as inputs.uwu-colors.packages.${pkgs.system}.default
  3. add it to helix language server configuration with command "${pkgs.uwu-colors}/bin/uwu_colors"
  4. add it to your languages of needs

Dependencies

~12–20MB
~244K SLoC