• Stars
    star
    126
  • Rank 284,543 (Top 6 %)
  • Language
    Lua
  • Created over 3 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A cold, dark color scheme for Neovim

๐Ÿ” Substrata

A cold, dark color scheme for Neovim written in Lua ported from vim-substrata theme.

โœจ Features

  • Supports the latest Neovim 0.5 features like TreeSitter and LSP
  • Terminal colors inside Neovim
  • Color themes for terminals:
    • alacritty
    • gnome-terminal
    • iterm2
    • kitty
    • konsole
    • wezterm

Plugin Support

โšก๏ธ Requirements

  • Neovim >= 0.5.0

๐Ÿ“ฆ Installation

Install the theme with your preferred package manager:

vim-plug

Plug 'kvrohit/substrata.nvim'

packer

use 'kvrohit/substrata.nvim'

๐Ÿš€ Usage

Enable the colorscheme:

-- Lua
vim.cmd [[colorscheme substrata]]
" Vim Script
colorscheme substrata

โš™๏ธ Configuration

Configuration needs to be set BEFORE loading the color scheme with colorscheme substrata

Option Default Description
substrata_italic_comments true Make comments italic
substrata_italic_keywords false Make keywords italic
substrata_italic_booleans false Make booleans italic
substrata_italic_functions false Make functions italic
substrata_italic_variables false Make variables italic
substrata_transparent false Disable background color
substrata_variant default Colorscheme variant
-- Example config in lua
vim.g.substrata_italic_functions = true

-- Load the colorscheme
vim.cmd [[colorscheme substrata]]
" Example config in Vim Script
let g:substrata_italic_functions = 1

" Load the colorscheme
colorscheme substrata
" Setting brighter colorscheme variant
let g:substrata_variant = "brighter"

Preview

Terminal

01-gnome-terminal

Shell script

02-shell-script

Markdown

03-markdown

YAML

04-yaml

Rust

05-rust

HTML

06-html

CSS

07-css

JavaScript

08-js

โ˜‘๏ธ Extras

  • Eclipse color theme: extras/eclipse/substrata.xml
  • Gnome Terminal color theme: extras/gnome-terminal/substrata.sh
  • iTerm2 color theme: extras/iterm2/substrata.itermcolors
  • Konsole color theme: extras/konsole/substrata.colorscheme
  • WezTerm color theme: extras/wezterm/colors/Substrata.toml
  • kitty color theme: extras/kitty/substrata.conf
  • Alacritty color theme: extras/alacritty/substrata.yaml

๐Ÿ‘ Credits