Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.76 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.76 KB

The following files are generated by this script.

This script requires Rust toolchain. Install it by following the official instruction and confirm that cargo command is available for package management.

To generate files:

$ cargo run -- --dir ..

Without --dir option, it dumps generated contents to stdout. Please see --help for more detail.

To run tests:

$ cargo test

To build a release binary:

$ cargo build --release
$ ./target/release/gen-spring-night-theme --dir ..

To modify colors or highlights, you can update tables and lists in src/main.rs.

  • Palette in palette module is a struct to define colors. Palette::default method constructs the instance. You can find the color palette inside the function body.
  • Colorscheme in colorscheme module is a struct to generate Vim colorscheme file. ColorschemeWriter::new method constructs the definition of highlights. Read the function body to know/modify the highlights for each syntax items. The terminal colors used in :terminal are also defined here.
  • AirlineTheme in airline module is a struct to generate vim-airline theme file. AirlineThemeWriter::new method defines color palettes for each modes.
  • AlacrittyTheme in alacritty module is a struct to generate Alacritty theme file. AlacrittyTheme::new method defines the terminal ANSI colors.