1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:40:05 +08:00
SpaceVim/docs/layers/tools/cpicker.md

48 lines
1012 B
Markdown
Raw Permalink Normal View History

2024-07-12 00:31:36 +08:00
---
title: "SpaceVim cpicker layer"
description: "This layer provides color picker for SpaceVim"
---
# [Available Layers](../../) >> tools#cpicker
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Install](#install)
2024-07-13 21:59:34 +08:00
- [Layer options](#layer-options)
2024-07-12 00:31:36 +08:00
- [Key bindings](#key-bindings)
2024-07-13 21:59:34 +08:00
- [Commands](#commands)
2024-07-12 00:31:36 +08:00
<!-- 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"
```
2024-07-13 21:59:34 +08:00
## Layer options
1. default_spaces: set the default color spaces, the default value is `['rgb', 'hsl']`. Available spaces: rgb, hsl, hsv, cmyk.
2024-07-12 00:31:36 +08:00
## Key bindings
| Key Binding | Description |
| ----------- | ----------------- |
| `SPC i p c` | open color picker |
2024-07-13 21:59:34 +08:00
## 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
```