norcalli / nvim-colorizer.lua

The fastest Neovim colorizer.
Other
2.23k stars 117 forks source link

Added support for 0xAARRGGBB #58

Closed afonsocraposo closed 3 days ago

afonsocraposo commented 3 years ago

I typically program Flutter applications using Dart. To define colors, I use Color(0xFF00FF00), in which the color is represented as 0xAARRGGBB. I added support to this color representation in nvim-colorizer.lua, which can be activated using:

require 'colorizer'.setup {
  dart = { rgb_0x = true; } -- enable parsing "0xAARRGGBB"
}
ObserverOfTime commented 2 years ago

Can this also support 0xRRGGBB?

ijontan commented 3 months ago

I also need this not just for dart, for my hyprland config as well