neovim theme for code, not colors
- Lua 79.8%
- Shell 8.8%
- Nix 5.4%
- Python 4.2%
- Just 1.8%
## Problem midnight.nvim did not define Neovim's standard `Added` and `Removed` highlight groups, so diff sign/text aliases had to carry their own foreground colors or inherit from background diff groups. ## Solution Define `Added` and `Removed` as regular foreground-only green/red groups, link diff syntax aliases to them, and leave `DiffAdd`/`DiffDelete` as background-bearing diff groups. ## Verification - `nix develop --command just ci` - Headless Neovim assertions for dark and light palette `Added`/`Removed` foregrounds and diff alias links Reviewed-on: https://git.barrettruth.com/barrettruth/midnight.nvim/pulls/57 |
||
|---|---|---|
| .forgejo | ||
| .github/workflows | ||
| colors | ||
| doc | ||
| lua/midnight | ||
| scripts | ||
| .gitignore | ||
| .luarc.json | ||
| .python-version | ||
| .styluaignore | ||
| biome.json | ||
| CONTRIBUTING.md | ||
| flake.lock | ||
| flake.nix | ||
| justfile | ||
| LICENSE | ||
| midnight.nvim-scm-1.rockspec | ||
| pyproject.toml | ||
| README.md | ||
| selene.toml | ||
| stylua.toml | ||
| uv.lock | ||
| vim.yaml | ||
midnight.nvim
Neovim theme for code, not colors.
Note
Due to GitHub's historic unreliability, active development is hosted on Forgejo. GitHub is maintained as a read-only mirror.
Installation
With vim.pack (Neovim 0.12+):
vim.pack.add({
'https://git.barrettruth.com/barrettruth/midnight.nvim',
})
Or via luarocks:
luarocks install midnight.nvim
Then set the colorscheme:
vim.cmd.colorscheme('midnight')
Documentation
:help midnight
Plugin Integrations
Motivation
I find existing colorschemes to generally be excessively colorful and distracting rather than informative. I wrote midnight.nvim to focus on code structure, specifically for competitive programming and workplace software development environments. I included highlighting of constants (e.g. strings, numbers, booleans) and language keywords to emphasize the maximally important aspects of code and its structure, respectively.