mirror of
https://github.com/He4eT/desolate.nvim.git
synced 2026-05-04 17:07:23 +00:00
Add README and license
This commit is contained in:
parent
7787b7ade0
commit
047840658b
2 changed files with 72 additions and 0 deletions
53
README.md
Normal file
53
README.md
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
# m o n o t o n e
|
||||
|
||||
Another monochrome vim colorscheme. Inspired by various
|
||||
[other](https://github.com/ewilazarus/preto)
|
||||
[monochrome](https://github.com/pbrisbin/vim-colors-off)
|
||||
[colorschemes](https://github.com/fxn/vim-monochrome).
|
||||
|
||||
Monotone is a middle ground between a regular colorscheme and [no syntax
|
||||
highlighting at all](https://www.kyleisom.net/blog/2012/10/17/syntax-off/). 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](https://github.com/Lokaltog/vim-monotone) based on
|
||||
[lush.nvim](https://github.com/rktjmp/lush.nvim). This version includes full
|
||||
support for both dark and light `background`.
|
||||
|
||||
## Installation
|
||||
|
||||
Monotone depends on [lush.nvim](https://github.com/rktjmp/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'
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue