Back to Spacevim

SpaceVim cpicker layer

docs/layers/tools/cpicker.md

2.4.0909 B
Original Source

Available Layers >> tools#cpicker

<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->

Description

This layer provides color picker for SpaceVim. It requires neovim 0.10+.

Install

To use this configuration layer, add it to your ~/.SpaceVim.d/init.toml.

vim
[[layers]]
name = "tools#cpicker"

Layer options

  1. default_spaces: set the default color spaces, the default value is ['rgb', 'hsl']. Available spaces: rgb, hsl, hsv, cmyk.

Key bindings

Key BindingDescription
SPC i p copen color picker

Commands

Instead of using key Binding, this layer also provides a Neovim command :Cpicker which can be used in cmdline. For example:

:Cpicker rgb cmyk