Crates.io | colorgen-nvim |
lib.rs | colorgen-nvim |
version | 0.3.0 |
source | src |
created_at | 2022-07-18 05:29:47.301969 |
updated_at | 2022-07-20 04:48:26.848437 |
description | Generate colorschemes for Neovim |
homepage | https://chrisatmachine.com |
repository | https://github.com/ChristianChiarulli/colorgen-nvim |
max_upload_size | |
id | 627521 |
size | 65,716 |
A colorscheme generator for Neovim
From crates.io
:
cargo install colorgen-nvim
For development version
cargo install --git https://github.com/ChristianChiarulli/colorgen-nvim
Create a toml file containing your highlight groups, there is an example in this repo called user_template.toml
NOTE: You can call this file whatever you want
colorgen-nvim user_template.toml
The template must contain a information
section and a palette
section
Example:
[information]
name = "onedarker"
background = "dark"
author = 'Christian Chiarulli <chrisatmachine@gmail.com>'
[palette]
fg = '#abb2bf'
bg = '#1e222a'
white = '#abb2bf'
gray = '#545862'
blue = '#519fdf'
green = '#88b369'
cyan = '#46a6b2'
red = '#d05c65'
orange = '#c18a56'
yellow = '#d5b06b'
purple = '#b668cd'
magenta = '#D16D9E'
You can define color options in the palette section and use them later to set colors for different highlight groups
Example:
[highlights]
Normal = 'fg bg'
SignColumn = '- bg'
MsgArea = 'fg bg'
ModeMsg = 'fg bg'
MsgSeparator = 'fg bg'
SpellBad = 'red - u'
SpellCap = 'yellow - u'
SpellLocal = 'green - u'
SpellRare = 'purple - u'
NormalNC = 'fg bg'
Pmenu = 'red bg - - 50'
PmenuSel = '- blue'
WildMenu = 'fg blue'
CursorLineNr = 'light_gray - b'
Comment = 'gray - i'
[Treesitter]
TSComment = 'link:Comment'
TSAnnotation = 'blue'
TSAttribute = 'cyan'
TSConstructor = 'cyan'
TSType = 'cyan'
The format is foreground background style special blend
You can also choose to link a highlight group to another by passing link:<name of hl group>
The -
is used to skip a particular section and replace it with NONE
Style Options:
o
: standoutu
: underlinec
: undercurld
: underdoublet
: underdottedh
: underdasheds
: strikethroughi
: italicb
: boldr
: reversen
: nocombineTODO:
support transparent background (this could get tricky with other plugins, considering bg:optional, if you put that then setting the transparent flag will set it to none)
italic comments