GithubHelp home page GithubHelp logo

hoodielive / colorgen-nvim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lunarvim/colorgen-nvim

0.0 0.0 0.0 145 KB

:rocket: Blazingly fast colorscheme generator for Neovim written in Rust :crab:

License: GNU General Public License v3.0

Rust 100.00%

colorgen-nvim's Introduction

banner

colorgen-nvim

๐Ÿš€ A colorscheme generator for Neovim written in Rust ๐Ÿฆ€

Installing

From crates.io:

cargo install colorgen-nvim

For development version

cargo install --git https://github.com/ChristianChiarulli/colorgen-nvim

Usage

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

Template

The template must contain a information section and a palette section

Example:

[information]
 name = "onedarker"
 background = "dark"
 author = 'Christian Chiarulli <[email protected]>'

[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: standout
  • u: underline
  • c: undercurl
  • d: underdouble
  • t: underdotted
  • h: underdashed
  • s: strikethrough
  • i: italic
  • b: bold
  • r: reverse
  • n: nocombine

TODO:

  • 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

Inspiration and Credits

colorgen-nvim's People

Contributors

christianchiarulli avatar maxverevkin avatar jeflbrown avatar titaniumtraveler avatar kylo252 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.