Lokaltog / monotone.nvim

Another monochrome neovim colorscheme.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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'

About

Another monochrome neovim colorscheme.

License:MIT License


Languages

Language:Lua 99.5%Language:Vim Script 0.5%