mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-10 04:37:16 +00:00
utility/ccc: add inputs and outputs options
Added `ccc.nvim` options `vim.utility.ccc.inputs` and `vim.utility.ccc.outputs` to make input color systems and output color formats configurable.
This commit is contained in:
parent
ef1f22efaf
commit
4d63250a48
3 changed files with 71 additions and 9 deletions
|
|
@ -3,6 +3,7 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.strings) concatStringsSep;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
|
||||
|
|
@ -30,12 +31,8 @@ in {
|
|||
},
|
||||
alpha_show = "hide", -- needed when highlighter.lsp is set to true
|
||||
recognize = { output = true }, -- automatically recognize color format under cursor
|
||||
inputs = { ccc.input.hsl },
|
||||
outputs = {
|
||||
ccc.output.css_hsl,
|
||||
ccc.output.css_rgb,
|
||||
ccc.output.hex,
|
||||
},
|
||||
inputs = {${concatStringsSep "," (map (input: "ccc.input.${input}") cfg.inputs)}},
|
||||
outputs = {${concatStringsSep "," (map (output: "ccc.output.${output}") cfg.outputs)}},
|
||||
convert = {
|
||||
{ ccc.picker.hex, ccc.output.css_hsl },
|
||||
{ ccc.picker.css_rgb, ccc.output.css_hsl },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue