mirror of
https://github.com/He4eT/desolate.nvim.git
synced 2026-05-04 17:07:23 +00:00
101 lines
2.2 KiB
Markdown
101 lines
2.2 KiB
Markdown
# desolate.nvim
|
|
|
|
Another customizable and not-so-colorful neovim colorscheme based on
|
|
[m o n o t o n e](https://github.com/Lokaltog/monotone.nvim).
|
|
|
|

|
|
|
|
## Installation
|
|
|
|
This colorscheme depends on [lush.nvim](https://github.com/rktjmp/lush.nvim). Example using packer.nvim:
|
|
|
|
```lua
|
|
require('packer').startup(function()
|
|
-- ...
|
|
use { 'He4eT/desolate.nvim', requires = { 'rktjmp/lush.nvim' } }
|
|
-- ...
|
|
end)
|
|
|
|
-- Put your custom settings here
|
|
|
|
vim.cmd [[colorscheme desolate]]
|
|
```
|
|
|
|
## Customization
|
|
|
|
I recommend that you first set the background color, adjust the HSL, and then pick accents for the statements, identifiers and constants.
|
|
|
|
The background and normal text colors can be configured with:
|
|
```lua
|
|
vim.g.desolate_bg
|
|
vim.g.desolate_fg
|
|
```
|
|
|
|
The base color may be customized by setting HSL values with:
|
|
```lua
|
|
vim.g.desolate_h
|
|
vim.g.desolate_s
|
|
vim.g.desolate_l
|
|
```
|
|
|
|
Also you may slightly adjust the colorscheme contrast to your liking by setting:
|
|
```lua
|
|
vim.g.desolate_contrast
|
|
```
|
|
|
|
Accent colors may be defined by setting:
|
|
```lua
|
|
vim.g.desolate_statement
|
|
vim.g.desolate_identifier
|
|
vim.g.desolate_constant
|
|
```
|
|
|
|
Colors for error, warning, success and info messages (you can use colors from your terminal):
|
|
```lua
|
|
vim.g.desolate_error
|
|
vim.g.desolate_warning
|
|
vim.g.desolate_success
|
|
vim.g.desolate_info
|
|
```
|
|
|
|
## Configuration example
|
|
|
|
### Default colors
|
|
|
|

|
|
|
|
```lua
|
|
vim.g.desolate_h = 0
|
|
vim.g.desolate_s = 0
|
|
vim.g.desolate_l = 70
|
|
vim.g.desolate_contrast = 120
|
|
|
|
vim.g.desolate_fg = '#cdcdcd'
|
|
vim.g.desolate_bg = '#383838'
|
|
|
|
vim.g.desolate_constant = '#ffd700'
|
|
vim.g.desolate_identifier = '#ffc812'
|
|
vim.g.desolate_statement = '#ffffff'
|
|
|
|
vim.g.desolate_error = '#ff5111'
|
|
vim.g.desolate_warning = '#ffc812'
|
|
vim.g.desolate_success = '#4e9a06'
|
|
vim.g.desolate_info = '#ffffff'
|
|
```
|
|
### Sketchy Evangelion Unit-01 colors
|
|
|
|

|
|
|
|
```lua
|
|
vim.g.desolate_h = 210
|
|
vim.g.desolate_s = 55
|
|
vim.g.desolate_l = 60
|
|
vim.g.desolate_contrast = 100
|
|
|
|
vim.g.desolate_fg = '#9747ff'
|
|
vim.g.desolate_bg = '#44335c'
|
|
|
|
vim.g.desolate_constant = '#66ff66'
|
|
vim.g.desolate_identifier = '#15f4ee'
|
|
vim.g.desolate_statement = '#e13dc0'
|
|
```
|