Skip to content

q60/uwu_colors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uwu-colors

Crates.io Version

a simple language server that i made mainly for helix because of helix-editor/helix#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.overlays.default
  • or using packages overlay as inputs.uwu-colors.packages.${pkgs.system}.default
  1. add it to helix language server configuration with command "${pkgs.uwu-colors}/bin/uwu_colors"
  2. add it to your languages of needs

from crates.io

preferred way on a system w/o nix - cargo install uwu_colors

binary from releases

grab an x86_64 binary from github releases

packaging status

repology packaging status

About

a dead simple language server to colorize hex color strings via textDocument/documentColor. mirror

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •