Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kvrohit/substrata.nvim
A cold, dark color scheme for Neovim
https://github.com/kvrohit/substrata.nvim
colorscheme dark lua neovim nvim pale theme
Last synced: 14 days ago
JSON representation
A cold, dark color scheme for Neovim
- Host: GitHub
- URL: https://github.com/kvrohit/substrata.nvim
- Owner: kvrohit
- Created: 2021-07-18T17:50:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-07T01:23:52.000Z (about 2 years ago)
- Last Synced: 2024-04-14T00:22:28.863Z (7 months ago)
- Topics: colorscheme, dark, lua, neovim, nvim, pale, theme
- Language: Lua
- Homepage:
- Size: 38.1 KB
- Stars: 120
- Watchers: 1
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-neovim - kvrohit/substrata.nvim - A cold, dark color scheme written in Lua ported from [arzg/vim-substrata](https://github.com/arzg/vim-substrata) theme. (Colorscheme / Tree-sitter Supported Colorscheme)
README
# 🏔 Substrata
A cold, dark color scheme for Neovim written in Lua ported from [vim-substrata](https://github.com/arzg/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
- [TreeSitter](https://github.com/nvim-treesitter/nvim-treesitter)
- [LSP Diagnostics](https://neovim.io/doc/user/lsp.html)
- [LSP Trouble](https://github.com/folke/lsp-trouble.nvim)
- [LSP Saga](https://github.com/glepnir/lspsaga.nvim)
- [Git Signs](https://github.com/lewis6991/gitsigns.nvim)
- [Telescope](https://github.com/nvim-telescope/telescope.nvim)
- [NvimTree](https://github.com/kyazdani42/nvim-tree.lua)
- [WhichKey](https://github.com/liuchengxu/vim-which-key)
- [Indent Blankline](https://github.com/lukas-reineke/indent-blankline.nvim)
- [BufferLine](https://github.com/akinsho/nvim-bufferline.lua)
- [ALE](https://github.com/dense-analysis/ale)
- [vim-sneak](https://github.com/justinmk/vim-sneak)
- [nvim-cmp](https://github.com/hrsh7th/nvim-cmp)
- [Hydra](https://github.com/anuvyklack/hydra.nvim)## ⚡️ Requirements
- Neovim >= 0.5.0
## 📦 Installation
Install the theme with your preferred package manager:
[vim-plug](https://github.com/junegunn/vim-plug)
```vim
Plug 'kvrohit/substrata.nvim'
```[packer](https://github.com/wbthomason/packer.nvim)
```lua
use 'kvrohit/substrata.nvim'
```## 🚀 Usage
Enable the colorscheme:
```lua
-- Lua
vim.cmd [[colorscheme substrata]]
``````vim
" 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 |```lua
-- Example config in lua
vim.g.substrata_italic_functions = true-- Load the colorscheme
vim.cmd [[colorscheme substrata]]
``````vim
" Example config in Vim Script
let g:substrata_italic_functions = 1" Load the colorscheme
colorscheme substrata
``````vim
" Setting brighter colorscheme variant
let g:substrata_variant = "brighter"
```## Preview
### Terminal
![01-gnome-terminal](https://user-images.githubusercontent.com/1040966/126907857-4bcc17d0-eb5b-4efb-b19b-aed7c281ddce.png)
### Shell script
![02-shell-script](https://user-images.githubusercontent.com/1040966/126907859-a3237745-6f67-4fe6-a990-6be96a466fcd.png)
### Markdown
![03-markdown](https://user-images.githubusercontent.com/1040966/126907860-09243fbf-c01d-4369-9ea1-25e31f705f33.png)
### YAML
![04-yaml](https://user-images.githubusercontent.com/1040966/126907862-8435f068-e494-42f0-8d1c-dd00d110199a.png)
### Rust
![05-rust](https://user-images.githubusercontent.com/1040966/126907863-60ad9141-cf7e-479e-a2a2-034bb04f3359.png)
### HTML
![06-html](https://user-images.githubusercontent.com/1040966/126907867-c50c6865-22d9-4396-ac72-eb42c36be454.png)
### CSS
![07-css](https://user-images.githubusercontent.com/1040966/126907868-190283cc-ae80-44b9-ad1e-f046a2c823bc.png)
### JavaScript
![08-js](https://user-images.githubusercontent.com/1040966/126907870-1e45a9d1-9ed2-4a7c-8b5a-99a99f212e5b.png)
## ☑️ 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
- The original authors of the excellent [vim-substrata](https://github.com/arzg/vim-substrata) theme.
- Lua plugin derived from [neon](https://github.com/rafamadriz/neon) and influenced by [tokyonight.nvim](https://github.com/folke/tokyonight.nvim).
- Gnome terminal, Konsole and iTerm2 colors exported from [terminal.sexy](http://terminal.sexy).