Another customizable not-so-colorful neovim colorscheme
  • Lua 99.4%
  • Vim Script 0.6%
Find a file
2021-03-20 19:34:06 +01:00
colors Add initial colorscheme 2021-03-20 19:16:37 +01:00
lua/lush_theme Add initial colorscheme 2021-03-20 19:16:37 +01:00
LICENSE Add README and license 2021-03-20 19:34:06 +01:00
README.md Add README and license 2021-03-20 19:34:06 +01:00

m o n o t o n e

Another monochrome vim colorscheme. Inspired by various other monochrome colorschemes.

Monotone is a middle ground between a regular colorscheme and no syntax highlighting at all. The colorscheme differentiates comments, strings and keywords with different weights and shades of gray. It emphasizes errors, warnings and search highlighting as shown in the screenshots below.

This is a neovim-specific version of vim-monotone based on lush.nvim. This version includes full support for both dark and light background.

Installation

Monotone depends on lush.nvim. Example using packer.nvim:

require('packer').startup(function()
  -- ...
  use 'rktjmp/lush.nvim'
  use 'Lokaltog/monotone.nvim'
  -- ...
end)

api.nvim_command 'colorscheme monotone'

Customization

The theme color may be customized by setting HSL values with g:monotone_[hsl].

You may adjust the colorscheme contrast to your liking by setting g:monotone_contrast.

The default contrast factor is 105. Recommended values are between 90 and 110.

Configuration example

vim.g.monotone_h = 85
vim.g.monotone_s = 30
vim.g.monotone_l = 50
vim.g.monotone_contrast = 110
vim.g.monotone_true_monotone = true
vim.o.background = 'light'