2020-06-20 00:49:05 +00:00
|
|
|
|
--[[ Highlite, a Neovim colorscheme template.
|
|
|
|
|
* Author: Iron-E (https://github.com/Iron-E)
|
|
|
|
|
* Repository: https://github.com/nvim-highlite
|
|
|
|
|
|
|
|
|
|
Rewrite of RNB, a Vim colorsheme template.
|
|
|
|
|
* Author: Romain Lafourcade (https://github.com/romainl)
|
|
|
|
|
* Canonical URL: https://github.com/romainl/vim-rnb
|
|
|
|
|
]]
|
|
|
|
|
|
|
|
|
|
--[[ Introduction
|
|
|
|
|
This template is designed to help vimmers create their own colorschemes
|
|
|
|
|
without much effort.
|
|
|
|
|
|
|
|
|
|
You will not need any additional tooling to run this file. Just open it
|
|
|
|
|
in Neovim and follow the instructions— the colorscheme will generate
|
|
|
|
|
be generated automatically.
|
|
|
|
|
|
|
|
|
|
The process is divided in five steps:
|
|
|
|
|
1. Rename the template,
|
|
|
|
|
2. Edit your colorscheme's information,
|
|
|
|
|
3. Define your colors,
|
|
|
|
|
4. Define your highlight groups and links, and
|
|
|
|
|
5. Sourcing your colorscheme.
|
|
|
|
|
]]
|
|
|
|
|
|
|
|
|
|
--[[ Step 1: renaming
|
|
|
|
|
If this file is distributed with a colorscheme it's probably already named correctly
|
|
|
|
|
and you can skip this step.
|
|
|
|
|
|
|
|
|
|
If you forked/cloned/copied this repository to create your own colorscheme, you will have to
|
|
|
|
|
rename this template to match the name of your colorscheme.
|
|
|
|
|
|
|
|
|
|
NOTE: Neovim doesn't really care about whitespace in the name of the colorscheme but it does for
|
|
|
|
|
filenames so make sure your filename doesn't have any whitespace character.
|
|
|
|
|
|
|
|
|
|
| colorscheme name | template filename |
|
|
|
|
|
|:-----------------:|:-----------------:|
|
|
|
|
|
| foobar | foobar.lua |
|
|
|
|
|
| foo-bar | foo-bar.lua |
|
|
|
|
|
| foo bar | foo-bar.lua or |
|
|
|
|
|
| foo_bar | foo_bar.lua |
|
|
|
|
|
]]
|
|
|
|
|
|
|
|
|
|
--[[ Step 2: information
|
|
|
|
|
Make sure the name of your colorscheme is unique and attractive.
|
|
|
|
|
]]
|
|
|
|
|
|
2020-06-20 03:53:31 +00:00
|
|
|
|
local name = 'highlite'
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
|
|
|
|
--[[ Step 3: colors
|
|
|
|
|
Next you will define all of the colors that you will use for the color scheme.
|
|
|
|
|
|
|
|
|
|
Each one should be made up of three parts:
|
|
|
|
|
|
|
|
|
|
```lua
|
|
|
|
|
<color name> = { -- Give each color a distinctive name.
|
2020-06-20 03:53:31 +00:00
|
|
|
|
<hex color code>, -- Hexadecimal color used in GVim/MacVim or 'NONE'.
|
|
|
|
|
<256-bit color code>, -- Integer 0–255 used by terminals supporting 256 colors or 'NONE'.
|
|
|
|
|
<16-bit color code> -- color name used by less capable color terminals, can be 'darkred',
|
|
|
|
|
'red', 'darkgreen', 'green', 'darkyellow', 'yellow', 'darkblue',
|
|
|
|
|
'blue', 'darkmagenta', 'magenta', 'black', 'darkgrey', 'grey',
|
|
|
|
|
'white', or 'NONE'
|
2020-06-20 00:49:05 +00:00
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
If your colors are defined correctly, the resulting colorscheme is guaranteed
|
|
|
|
|
to work in GVim (Windows/Linux), MacVim (MacOS), and any properly set up terminal emulator.
|
2020-06-22 02:38:18 +00:00
|
|
|
|
|
|
|
|
|
NOTE: |Replace-mode| will probably be useful here.
|
2020-06-20 00:49:05 +00:00
|
|
|
|
]]
|
|
|
|
|
|
2020-06-20 03:53:31 +00:00
|
|
|
|
local black = {'#202020', 0, 'black'}
|
|
|
|
|
local gray = {'#808080', 244, 'gray' }
|
|
|
|
|
local gray_dark = {'#353535', 236, 'darkgrey'}
|
2020-06-20 04:57:51 +00:00
|
|
|
|
local gray_darker = {'#505050', 244, 'gray'}
|
|
|
|
|
local gray_light = {'#c0c0c0', 251, 'gray'}
|
2020-06-20 03:53:31 +00:00
|
|
|
|
local white = {'#ffffff', 15, 'white'}
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 03:53:31 +00:00
|
|
|
|
local tan = {'#f4c069', 180, 'darkyellow'}
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 03:53:31 +00:00
|
|
|
|
local red = {'#ee4a59', 196, 'red'}
|
|
|
|
|
local red_dark = {'#a80000', 124, 'darkred'}
|
|
|
|
|
local red_light = {'#ff4090', 203, 'red'}
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 03:53:31 +00:00
|
|
|
|
local orange = {'#ff8900', 208, 'darkyellow'}
|
|
|
|
|
local orange_light = {'#f0af00', 214, 'yellow'}
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 03:53:31 +00:00
|
|
|
|
local yellow = {'#f0df33', 220, 'yellow'}
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 03:53:31 +00:00
|
|
|
|
local green_dark = {'#50de60', 83, 'darkgreen'}
|
|
|
|
|
local green = {'#77ff00', 72, 'green'}
|
|
|
|
|
local green_light = {'#a0ff70', 72, 'green'}
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 03:53:31 +00:00
|
|
|
|
local blue = {'#7090ff', 63, 'darkblue'}
|
|
|
|
|
local cyan = {'#00efff', 87, 'cyan'}
|
|
|
|
|
local ice = {'#80b5ff', 63, 'cyan'}
|
|
|
|
|
local teal = {'#6ac0c0', 38, 'cyan'}
|
|
|
|
|
local turqoise = {'#2bff99', 33, 'blue'}
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 03:53:31 +00:00
|
|
|
|
local magenta = {'#d5508f', 126, 'magenta'}
|
|
|
|
|
local magenta_dark = {'#bb0099', 126, 'darkmagenta'}
|
|
|
|
|
local pink = {'#ffa6ff', 162, 'magenta'}
|
|
|
|
|
local pink_light = {'#ffb7b7', 38, 'white'}
|
|
|
|
|
local purple = {'#cf55f0', 129, 'magenta'}
|
|
|
|
|
local purple_light = {'#af60af', 63, 'magenta'}
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
|
|
|
|
--[[ Step 4: highlights
|
|
|
|
|
You can define highlight groups like this:
|
|
|
|
|
|
|
|
|
|
```lua
|
|
|
|
|
<highlight group name> = {
|
2020-06-20 03:53:31 +00:00
|
|
|
|
bg=<color>, -- The color used for background color, or use 'NONE', 'fg' or 'bg'
|
|
|
|
|
fg=<color>, -- The color used for foreground color, or use 'NONE', 'fg' or 'bg'
|
|
|
|
|
-- Style can be 'bold', 'italic', and more. See |attr-list| for more information.
|
2020-06-20 00:49:05 +00:00
|
|
|
|
style=<cterm>
|
|
|
|
|
-- style can also have a color, and/or multiple <cterm>s.
|
|
|
|
|
style={<cterm> [, <cterm>] [color=<color>]})
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
The sample above tells Vim to render normal text in dark gray against a white
|
|
|
|
|
background, without any other styling.
|
|
|
|
|
|
2020-06-20 03:53:31 +00:00
|
|
|
|
Or you can link an highlight group to another. Here, 'Title' will inherit its style from
|
|
|
|
|
'Normal':
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
|
|
|
|
```lua
|
2020-06-20 03:53:31 +00:00
|
|
|
|
Title = {link='Normal'}
|
2020-06-20 00:49:05 +00:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
In GUI Vim, there is an additional color for the undercurl used to
|
|
|
|
|
highlight spelling mistakes:
|
|
|
|
|
|
|
|
|
|
```lua
|
|
|
|
|
SpellBad = { -- ← name of the highlight group
|
2020-06-20 03:53:31 +00:00
|
|
|
|
bg='NONE', -- background color
|
2020-06-20 00:49:05 +00:00
|
|
|
|
fg=red, -- foureground color
|
|
|
|
|
style={ -- the style
|
2020-06-20 03:53:31 +00:00
|
|
|
|
'undercurl', -- undercurl (squiggly line)
|
2020-06-20 00:49:05 +00:00
|
|
|
|
color=red -- the color of the undercurl
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
If you weren't satisfied with undercurl, and also wanted another effect, you can
|
2020-06-20 03:53:31 +00:00
|
|
|
|
add another one below 'undercurl' and it will be applied as well:
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
|
|
|
|
```lua
|
|
|
|
|
SpellBad = { -- ← name of the highlight group
|
2020-06-20 03:53:31 +00:00
|
|
|
|
bg='NONE', -- background color
|
2020-06-20 00:49:05 +00:00
|
|
|
|
fg=red, -- foureground color
|
|
|
|
|
style={ -- the style
|
2020-06-20 03:53:31 +00:00
|
|
|
|
'undercurl', -- undercurl (squiggly line)
|
|
|
|
|
'standout'
|
2020-06-20 00:49:05 +00:00
|
|
|
|
color=red -- the color of the undercurl
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
The sample above tells Vim to render badly spelled words in red against the current
|
|
|
|
|
background, with a red undercurl.
|
|
|
|
|
|
|
|
|
|
You can add any custom highlight group to the standard list below but you shouldn't
|
|
|
|
|
remove any if you want a working colorscheme. Most of them are described under
|
|
|
|
|
:help highlight-default, the others are taken from :help group-name. Both help sections
|
|
|
|
|
are good reads, by the way.
|
2020-06-22 02:38:18 +00:00
|
|
|
|
|
|
|
|
|
NOTE: |Replace-mode| will probably be useful here.
|
|
|
|
|
|
|
|
|
|
NOTE: /As long as you do not remove any highlight groups or colors/, you can safely
|
|
|
|
|
ignore any highlight groups that are `link`ed others.
|
|
|
|
|
For example, programming languages almost exclusively link to the 1st
|
|
|
|
|
and 2nd sections, so as long as you define everything there you will automatically
|
|
|
|
|
be defining the rest of the highlights.
|
2020-06-20 00:49:05 +00:00
|
|
|
|
]]
|
|
|
|
|
|
2020-06-20 03:53:31 +00:00
|
|
|
|
--[[ DO NOT EDIT THESE. You can use them instead of string literals. ]]
|
|
|
|
|
local BG = 'bg'
|
|
|
|
|
local FG = 'fg'
|
|
|
|
|
local NONE = 'NONE'
|
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ These are the ones you should edit. ]]
|
2020-06-20 00:49:05 +00:00
|
|
|
|
-- This is the only highlight that must be defined separately.
|
2020-06-20 03:53:31 +00:00
|
|
|
|
local Normal = {bg=black, fg=gray_light, style=NONE}
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
|
|
|
|
-- This is where the rest of your highlights should go.
|
|
|
|
|
local highlights = {
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.1. Text Analysis ]]
|
2020-06-20 06:01:23 +00:00
|
|
|
|
Comment = {bg=NONE, fg=gray, style='italic'},
|
|
|
|
|
EndOfBuffer = {link='NonText' },
|
|
|
|
|
NonText = {bg=NONE, fg=gray_darker, style=NONE },
|
|
|
|
|
Whitespace = {link='NonText' },
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.1.1. Literals]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
Constant = {bg=NONE, fg=orange_light, style=NONE},
|
|
|
|
|
String = {bg=NONE, fg=green, style=NONE},
|
|
|
|
|
Character = {bg=NONE, fg=red_light, style=NONE},
|
|
|
|
|
Number = {bg=NONE, fg=pink_light, style=NONE},
|
|
|
|
|
Boolean = {bg=NONE, fg=yellow, style=NONE},
|
|
|
|
|
Float = {link='Number' },
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.1.2. Identifiers]]
|
2020-06-22 19:00:06 +00:00
|
|
|
|
Identifier = {bg=NONE, fg=FG, style=NONE},
|
2020-06-20 03:53:31 +00:00
|
|
|
|
Function = {bg=NONE, fg=purple, style=NONE},
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.1.3. Syntax]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
Statement = {bg=NONE, fg=ice, style=NONE },
|
|
|
|
|
Conditional = {bg=NONE, fg=ice, style='italic'},
|
|
|
|
|
Repeat = {link='Keyword' },
|
|
|
|
|
Label = {bg=NONE, fg=pink, style='italic'},
|
|
|
|
|
Operator = {bg=NONE, fg=green_dark, style=NONE },
|
|
|
|
|
Keyword = {bg=NONE, fg=turqoise, style='bold' },
|
|
|
|
|
Exception = {bg=NONE, fg=red, style='bold' },
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.1.4. Metatextual Information]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
PreProc = {bg=NONE, fg=tan, style=NONE },
|
|
|
|
|
Include = {bg=NONE, fg=green_light, style='nocombine'},
|
|
|
|
|
Define = {bg=NONE, fg=blue, style='nocombine'},
|
2020-06-20 00:49:05 +00:00
|
|
|
|
Macro = {link='Define' },
|
2020-06-20 03:53:31 +00:00
|
|
|
|
PreCondit = {bg=NONE, fg=teal, style='nocombine'},
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.1.5. Semantics]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
Type = {bg=NONE, fg=cyan, style=NONE },
|
|
|
|
|
StorageClass = {bg=NONE, fg=orange_light, style='bold' },
|
|
|
|
|
Structure = {bg=NONE, fg=blue, style='bold' },
|
|
|
|
|
Typedef = {bg=NONE, fg=cyan, style='italic'},
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.1.6. Edge Cases]]
|
2020-06-21 03:52:38 +00:00
|
|
|
|
Special = {bg=NONE, fg=magenta, style=NONE },
|
|
|
|
|
SpecialChar = {link='Character' },
|
|
|
|
|
SpecialKey = {link='Character' },
|
|
|
|
|
Tag = {link='Underlined' },
|
2020-06-22 19:00:06 +00:00
|
|
|
|
Delimiter = {bg=NONE, fg=white, style=NONE },
|
2020-06-21 03:52:38 +00:00
|
|
|
|
SpecialComment = {bg=NONE, fg=gray, style={'bold', 'nocombine'}},
|
|
|
|
|
Debug = {link='WarningMsg' },
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.1.7. Help Syntax]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
Underlined = {bg=NONE, fg=turqoise, style='underline' },
|
|
|
|
|
Ignore = {bg=NONE, fg=gray, style=NONE },
|
|
|
|
|
Error = {bg=red_dark, fg=white, style='bold' },
|
|
|
|
|
Todo = {bg=NONE, fg=yellow, style={'bold', 'underline'}},
|
|
|
|
|
helpHyperTextJump = {link='Underlined' },
|
|
|
|
|
helpSpecial = {link='Function' },
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.2... Editor UI ]]
|
|
|
|
|
--[[ 4.2.1. Status Line]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
StatusLine = {bg=gray_darker, fg=green_light, style=NONE},
|
|
|
|
|
StatusLineNC = {bg=gray_darker, fg=gray, style=NONE},
|
|
|
|
|
StatusLineTerm = {link='StatusLine' },
|
|
|
|
|
StatusLineTermNC = {link='StatusLineNC' },
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.2.2. Separators]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
VertSplit = {bg=NONE, fg=gray_darker, style=NONE },
|
|
|
|
|
TabLine = {bg=gray_darker, fg=FG, style=NONE },
|
|
|
|
|
TabLineFill = {bg=NONE, fg=FG, style=NONE },
|
|
|
|
|
TabLineSel = {bg=gray_darker, fg=FG, style='inverse'},
|
|
|
|
|
Title = {bg=NONE, fg=NONE, style='bold' },
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.2.3. Conditional Line Highlighting]]
|
2020-06-20 00:49:05 +00:00
|
|
|
|
--Conceal={}
|
2020-06-20 03:53:31 +00:00
|
|
|
|
CursorLine = {bg=gray_dark, fg=NONE, style=NONE },
|
|
|
|
|
CursorLineNr = {bg=gray_dark, fg=pink, style=NONE },
|
|
|
|
|
debugBreakpoint = {link='ErrorMsg' },
|
|
|
|
|
debugPC = {link='ColorColumn' },
|
|
|
|
|
LineNr = {bg=NONE, fg=gray, style=NONE },
|
|
|
|
|
QuickFixLine = {bg=gray_darker, fg=NONE, style=NONE },
|
|
|
|
|
Visual = {bg=NONE, fg=NONE, style='inverse'},
|
|
|
|
|
VisualNOS = {bg=gray_darker, fg=NONE, style=NONE },
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.2.4. Popup Menu]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
Pmenu = {bg=gray_dark, fg=FG, style=NONE},
|
|
|
|
|
PmenuSbar = {bg=black, fg=NONE, style=NONE},
|
|
|
|
|
PmenuSel = {bg=NONE, fg=FG, style=NONE},
|
|
|
|
|
PmenuThumb = {bg=white, fg=NONE, style=NONE},
|
|
|
|
|
WildMenu = {bg=NONE, fg=NONE, style=NONE},
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.2.5. Folds]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
FoldColumn = {bg=gray_darker, fg=NONE, style='bold' },
|
|
|
|
|
Folded = {bg=purple_light, fg=black, style='italic'},
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.2.6. Diffs]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
DiffAdd = {bg=NONE, fg=green_dark, style='inverse'},
|
|
|
|
|
DiffChange = {bg=NONE, fg=yellow, style='inverse'},
|
|
|
|
|
DiffDelete = {bg=NONE, fg=red, style='inverse'},
|
|
|
|
|
DiffText = {bg=NONE, fg=NONE, style='inverse'},
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.2.7. Searching]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
IncSearch = {bg=NONE, fg=NONE, style='inverse' },
|
2020-06-21 02:32:49 +00:00
|
|
|
|
Search = {bg=NONE, fg=NONE, style={'underline', color=white}},
|
2020-06-20 03:53:31 +00:00
|
|
|
|
MatchParen = {bg=NONE, fg=green, style={'bold', 'underline' }},
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.2.8. Spelling]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
SpellBad = {bg=NONE, fg=NONE, style={'undercurl', color=red }},
|
|
|
|
|
SpellCap = {bg=NONE, fg=NONE, style={'undercurl', color=yellow}},
|
|
|
|
|
SpellLocal = {bg=NONE, fg=NONE, style={'undercurl', color=green }},
|
|
|
|
|
SpellRare = {bg=NONE, fg=NONE, style={'undercurl', color=orange}},
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.2.9. Conditional Column Highlighting]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
ColorColumn = {bg=NONE, fg=NONE, style='inverse'},
|
|
|
|
|
SignColumn = {bg=NONE, fg=NONE, style=NONE },
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.2.10. Messages]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
ErrorMsg = {bg=NONE, fg=red_light, style='bold' },
|
|
|
|
|
ModeMsg = {bg=NONE, fg=yellow, style=NONE },
|
|
|
|
|
WarningMsg = {bg=NONE, fg=orange, style='bold' },
|
|
|
|
|
Question = {bg=NONE, fg=orange_light, style='underline'},
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.2.11. Cursor ]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
Cursor = {bg=NONE, fg=NONE, style='inverse'},
|
|
|
|
|
CursorIM = {link='Cursor' },
|
|
|
|
|
CursorColumn = {bg=gray_dark, fg=NONE, style=NONE },
|
2020-06-20 00:49:05 +00:00
|
|
|
|
|
|
|
|
|
-- 2.12 Misc.
|
2020-06-20 22:21:09 +00:00
|
|
|
|
-- Directory = {bg=NONE, fg=ice, style='bold'},
|
2020-06-20 03:53:31 +00:00
|
|
|
|
Directory = {bg=NONE, fg=ice, style='bold'},
|
|
|
|
|
Terminal = {link='Normal' },
|
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.3. Programming Languages
|
2020-06-20 03:53:31 +00:00
|
|
|
|
Everything in this section is OPTIONAL. Feel free to remove everything
|
|
|
|
|
here if you don't want to define it, or add more if there's something
|
|
|
|
|
missing.
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--]]
|
|
|
|
|
|
|
|
|
|
--[[ 4.3.1. C ]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
cConstant = {link='Constant'},
|
|
|
|
|
cCustomClass = {link='Type' },
|
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.3.2. C++ ]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
cppSTLexception = {link='Exception'},
|
|
|
|
|
cppSTLnamespace = {link='String' },
|
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.3.3 C# ]]
|
|
|
|
|
csLogicSymbols = {link='Operator'},
|
|
|
|
|
|
|
|
|
|
--[[ 4.3.4. CSS ]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
cssProp = {link='Keyword'},
|
|
|
|
|
cssTagName = {link='Type' },
|
|
|
|
|
|
2020-06-21 02:32:49 +00:00
|
|
|
|
--[[ 4.3.5. Dart ]]
|
|
|
|
|
dartLibrary = {link='Statement'},
|
|
|
|
|
|
|
|
|
|
--[[ 4.3.6. dot ]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
dotKeyChar = {link='Character'},
|
|
|
|
|
dotType = {link='Type' },
|
|
|
|
|
|
2020-06-21 02:32:49 +00:00
|
|
|
|
--[[ 4.3.7. Go ]]
|
|
|
|
|
goBlock = {link='Delimiter' },
|
|
|
|
|
goBoolean = {link='Boolean' },
|
|
|
|
|
goBuiltins = {link='Operator' },
|
|
|
|
|
goField = {link='Identifier' },
|
|
|
|
|
goFloat = {link='Float' },
|
|
|
|
|
goFormatSpecifier = {link='Character' },
|
|
|
|
|
goFunction = {link='Function' },
|
|
|
|
|
goFunctionCall = {link='goFunction' },
|
|
|
|
|
goFunctionReturn = {bg=NONE, fg=NONE, style=NONE},
|
|
|
|
|
goMethodCall = {link='goFunctionCall' },
|
|
|
|
|
goParamType = {link='goReceiverType' },
|
|
|
|
|
goPointerOperator = {link='SpecialChar' },
|
|
|
|
|
goPredefinedIdentifiers = {link='Constant' },
|
|
|
|
|
goReceiver = {link='goBlock' },
|
|
|
|
|
goReceiverType = {link='goTypeName' },
|
|
|
|
|
goSimpleParams = {link='goBlock' },
|
|
|
|
|
goType = {link='Type' },
|
|
|
|
|
goTypeConstructor = {link='goFunction' },
|
|
|
|
|
goTypeName = {link='Type' },
|
|
|
|
|
goVarAssign = {bg=NONE, fg=NONE, style=NONE},
|
|
|
|
|
goVarDefs = {link='goVarAssign' },
|
|
|
|
|
|
|
|
|
|
--[[ 4.3.8. HTML ]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
htmlBold = {bg=NONE, fg=NONE, style='bold' },
|
|
|
|
|
htmlItalic = {bg=NONE, fg=NONE, style='italic'},
|
|
|
|
|
htmlSpecialTagName = {link='Tag' },
|
|
|
|
|
|
2020-06-21 02:32:49 +00:00
|
|
|
|
--[[ 4.3.9. Java ]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
javaClassDecl = {link='Structure'},
|
|
|
|
|
|
2020-06-21 02:32:49 +00:00
|
|
|
|
--[[ 4.3.10. JavaScript ]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
jsFuncBlock = {link='Function' },
|
|
|
|
|
jsObjectKey = {link='Type' },
|
|
|
|
|
jsReturn = {link='Keyword' },
|
|
|
|
|
jsVariableDef = {link='Identifier'},
|
|
|
|
|
|
2020-06-21 02:32:49 +00:00
|
|
|
|
--[[ 4.3.11. JSON ]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
jsonStringSQError = {link='Exception'},
|
|
|
|
|
|
2020-06-21 02:32:49 +00:00
|
|
|
|
--[[ 4.3.12. Make ]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
makeCommands = {link='Statment'},
|
|
|
|
|
makeSpecTarget = {link='Type' },
|
|
|
|
|
|
2020-06-21 02:32:49 +00:00
|
|
|
|
--[[ 4.3.13. Markdown ]]
|
2020-06-22 02:38:18 +00:00
|
|
|
|
markdownH1 = {bg=NONE, fg=green_dark, style='bold' },
|
|
|
|
|
markdownH2 = {bg=NONE, fg=red_light, style='bold' },
|
|
|
|
|
markdownH3 = {bg=NONE, fg=green, style='bold' },
|
|
|
|
|
markdownH4 = {bg=NONE, fg=magenta, style='bold' },
|
|
|
|
|
markdownH5 = {bg=NONE, fg=orange, style='bold' },
|
|
|
|
|
markdownH6 = {bg=NONE, fg=yellow, style='bold' },
|
|
|
|
|
mkdBold = {bg=NONE, fg='green', style='bold' },
|
|
|
|
|
mkdCode = {link='Comment' },
|
|
|
|
|
mkdCodeDelimiter = {link='Delimiter' },
|
|
|
|
|
mkdItalic = {bg=NONE, fg=green, style='italic'},
|
|
|
|
|
mkdListItem = {link='Special' },
|
|
|
|
|
mkdNonListItemBlock = {bg=NONE, fg=gray, style=NONE },
|
|
|
|
|
texMathZoneY = {link='String' },
|
2020-06-21 02:32:49 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.20. Python ]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
pythonBrackets = {link='Delimiter' },
|
2020-06-20 04:57:51 +00:00
|
|
|
|
pythonBuiltinFunc = {link='Operator' },
|
2020-06-20 03:53:31 +00:00
|
|
|
|
pythonBuiltinObj = {link='Type' },
|
|
|
|
|
pythonBuiltinType = {link='Type' },
|
|
|
|
|
pythonClass = {link='Structure' },
|
|
|
|
|
pythonClassParameters = {link='pythonParameters'},
|
|
|
|
|
pythonDecorator = {link='PreProc' },
|
2020-06-20 04:57:51 +00:00
|
|
|
|
pythonDottedName = {link='Identifier' },
|
2020-06-20 03:53:31 +00:00
|
|
|
|
pythonError = {link='Error' },
|
|
|
|
|
pythonException = {link='Exception' },
|
|
|
|
|
pythonInclude = {link='Include' },
|
|
|
|
|
pythonIndentError = {link='pythonError' },
|
|
|
|
|
pythonLambdaExpr = {link='pythonOperator' },
|
|
|
|
|
pythonOperator = {link='Operator' },
|
|
|
|
|
pythonParam = {link='Identifier' },
|
|
|
|
|
pythonParameters = {link='Delimiter' },
|
|
|
|
|
pythonSelf = {link='Statement' },
|
|
|
|
|
pythonSpaceError = {link='pythonError' },
|
|
|
|
|
pythonStatement = {link='Statement' },
|
|
|
|
|
|
2020-06-21 02:32:49 +00:00
|
|
|
|
--[[ 4.3.21. Ruby ]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
rubyClass = {link='Structure'},
|
|
|
|
|
rubyDefine = {link='Define' },
|
|
|
|
|
rubyInterpolationDelimiter = {link='Delimiter'},
|
|
|
|
|
|
2020-06-21 02:32:49 +00:00
|
|
|
|
--[[ 4.3.22. Rust ]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
rustKeyword = {link='Keyword' },
|
|
|
|
|
rustModPath = {link='Include' },
|
|
|
|
|
rustScopeDecl = {link='Delimiter' },
|
|
|
|
|
rustTrait = {link='StorageClass'},
|
|
|
|
|
|
2020-06-21 02:32:49 +00:00
|
|
|
|
--[[ 4.3.23. Scala ]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
scalaKeyword = {link='Keyword' },
|
|
|
|
|
scalaNameDefinition = {link='Identifier'},
|
|
|
|
|
|
2020-06-21 02:32:49 +00:00
|
|
|
|
--[[ 4.3.24. shell ]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
shFunctionKey = {link='Function' },
|
|
|
|
|
shLoop = {link='Repeat' },
|
|
|
|
|
shSet = {link='Statement'},
|
|
|
|
|
shTestOpr = {link='Debug' },
|
|
|
|
|
|
2020-06-21 02:32:49 +00:00
|
|
|
|
--[[ 4.3.25. Solidity ]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
solBuiltinType = {link='Type' },
|
|
|
|
|
solContract = {link='Typedef' },
|
|
|
|
|
solContractName = {link='Function'},
|
|
|
|
|
|
2020-06-21 02:32:49 +00:00
|
|
|
|
--[[ 4.3.26. TOML ]]
|
2020-06-20 03:53:31 +00:00
|
|
|
|
tomlComment = {link='Comment' },
|
|
|
|
|
tomlKey = {link='Label' },
|
|
|
|
|
tomlTable = {link='StorageClass'},
|
|
|
|
|
|
2020-06-21 02:32:49 +00:00
|
|
|
|
--[[ 4.3.27. VimScript ]]
|
2020-06-22 04:34:03 +00:00
|
|
|
|
vimCommand = {link = 'Keyword' },
|
|
|
|
|
vimFuncKey = {link = 'Function' },
|
|
|
|
|
vimGroup = {link = 'Type' },
|
|
|
|
|
vimHiGroup = {link = 'Typedef' },
|
|
|
|
|
vimIsCommand = {link = 'vimCommand'},
|
|
|
|
|
vimLet = {link = 'Operator' },
|
|
|
|
|
vimMap = {link = 'vimCommand'},
|
2020-06-20 03:53:31 +00:00
|
|
|
|
|
2020-06-21 02:32:49 +00:00
|
|
|
|
--[[ 4.3.28. XML ]]
|
2020-06-21 03:58:46 +00:00
|
|
|
|
xmlAttrib = {link='Label' },
|
2020-06-21 02:32:49 +00:00
|
|
|
|
xmlEndTag = {link='Exception'},
|
2020-06-21 03:58:46 +00:00
|
|
|
|
xmlEqual = {link='Operator' },
|
2020-06-20 03:53:31 +00:00
|
|
|
|
xmlTag = {link='Delimiter'},
|
2020-06-21 03:58:46 +00:00
|
|
|
|
xmlTagName = {link='Define' },
|
2020-06-20 03:53:31 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.4. Plugins
|
2020-06-20 03:53:31 +00:00
|
|
|
|
Everything in this section is OPTIONAL. Feel free to remove everything
|
|
|
|
|
here if you don't want to define it, or add more if there's something
|
|
|
|
|
missing.
|
|
|
|
|
]]
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.4.1. ALE ]]
|
2020-06-21 02:32:49 +00:00
|
|
|
|
ALEErrorSign = {link='ErrorMsg' },
|
|
|
|
|
ALEWarningSign = {link='WarningMsg'},
|
|
|
|
|
|
|
|
|
|
--[[ 4.4.2. coc.nvim ]]
|
|
|
|
|
CocErrorHighlight = {bg=NONE, fg=NONE, style={'undercurl', color='red' }},
|
|
|
|
|
CocErrorSign = {link='ALEErrorSign' },
|
|
|
|
|
CocHintHighlight = {bg=NONE, fg=NONE, style={'undercurl', color='magenta'}},
|
|
|
|
|
CocHintSign = {link='Special' },
|
|
|
|
|
CocInfoHighlight = {bg=NONE, fg=NONE, style={'undercurl', color='yellow' }},
|
|
|
|
|
CocInfoSign = {link='Todo' },
|
|
|
|
|
CocWarningHighlight = {bg=NONE, fg=NONE, style={'undercurl', color='orange' }},
|
|
|
|
|
CocWarningSign = {link='ALEWarningSign' },
|
2020-06-20 03:53:31 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.4.2. vim-jumpmotion / vim-easymotion ]]
|
2020-06-20 04:57:51 +00:00
|
|
|
|
EasyMotion = {link = 'IncSearch' },
|
|
|
|
|
JumpMotion = {link = 'EasyMotion'},
|
2020-06-20 03:53:31 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.4.3. vim-markdown ]]
|
2020-06-20 04:57:51 +00:00
|
|
|
|
htmlH1 = {link='markdownH1'},
|
|
|
|
|
htmlH2 = {link='markdownH2'},
|
|
|
|
|
htmlH3 = {link='markdownH3'},
|
|
|
|
|
htmlH4 = {link='markdownH4'},
|
|
|
|
|
htmlH5 = {link='markdownH5'},
|
|
|
|
|
htmlH6 = {link='markdownH6'},
|
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.4.4. vim-gitgutter / vim-signify ]]
|
2020-06-20 05:47:45 +00:00
|
|
|
|
GitGutterAdd = {bg=NONE, fg=green, style=NONE},
|
|
|
|
|
GitGutterChange = {bg=NONE, fg=yellow, style=NONE},
|
|
|
|
|
GitGutterDelete = {bg=NONE, fg=red, style=NONE},
|
2020-06-24 03:00:44 +00:00
|
|
|
|
GitGutterChangeDelete = {bg=NONE, fg=orange, style=NONE},
|
2020-06-20 04:57:51 +00:00
|
|
|
|
|
|
|
|
|
SignifySignAdd = {link='GitGutterAdd' },
|
|
|
|
|
SignifySignChange = {link='GitGutterChange' },
|
|
|
|
|
SignifySignDelete = {link='GitGutterDelete' },
|
|
|
|
|
SignifySignChangeDelete = {link='GitGutterChangeDelete'},
|
2020-06-20 03:53:31 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.4.5. vim-indent-guides ]]
|
2020-06-20 04:57:51 +00:00
|
|
|
|
IndentGuidesOdd = {bg=gray_darker, fg=NONE, style=NONE},
|
|
|
|
|
IndentGuidesEven = {bg=gray_dark, fg=NONE, style=NONE},
|
2020-06-20 03:53:31 +00:00
|
|
|
|
|
2020-06-20 22:21:09 +00:00
|
|
|
|
--[[ 4.4.7. NERDTree ]]
|
2020-06-20 04:57:51 +00:00
|
|
|
|
NERDTreeCWD = {link='Label' },
|
|
|
|
|
NERDTreeUp = {link='Operator' },
|
|
|
|
|
NERDTreeDir = {link='Directory' },
|
|
|
|
|
NERDTreeDirSlash = {link='Delimiter' },
|
|
|
|
|
NERDTreeOpenable = {link='NERDTreeDir' },
|
|
|
|
|
NERDTreeClosable = {link='NERDTreeOpenable'},
|
|
|
|
|
NERDTreeExecFile = {link='Function' },
|
|
|
|
|
NERDTreeLinkTarget = {link='Tag' },
|
2020-06-20 00:49:05 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-06-24 03:16:17 +00:00
|
|
|
|
if vim.lsp then
|
2020-06-24 03:00:44 +00:00
|
|
|
|
highlights.LspDiagnosticsError = {link='CocErrorHighlight'}
|
|
|
|
|
highlights.LspDiagnosticsErrorFloating = {link='ErrorMsg'}
|
|
|
|
|
highlights.LspDiagnosticsErrorSign = {link='CocErrorSign'}
|
|
|
|
|
|
|
|
|
|
highlights.LspDiagnosticsWarning = {link='CocWarningHighlight'}
|
|
|
|
|
highlights.LspDiagnosticsWarningFloating = {link='WarningMsg'}
|
|
|
|
|
highlights.LspDiagnosticsWarningSign = {link='CocWarningSign'}
|
|
|
|
|
|
|
|
|
|
highlights.LspDiagnosticsInformation = {link='CocInfoHighlight'}
|
|
|
|
|
highlights.LspDiagnosticsInformationFloating = {bg=NONE, fg=ice, style=NONE}
|
|
|
|
|
highlights.LspDiagnosticsInformationSign = {link='CocInfoSign'}
|
|
|
|
|
|
|
|
|
|
highlights.LspDiagnosticsHint = {link = 'CocHintHighlight'}
|
|
|
|
|
highlights.LspDiagnosticsHintFloating = {bg=NONE, fg=magenta, style=NONE}
|
|
|
|
|
highlights.LspDiagnosticsHintSign = {link='CocHintSign'}
|
|
|
|
|
end
|
|
|
|
|
|
2020-06-20 03:53:31 +00:00
|
|
|
|
--[[ Step 5: Terminal Colors
|
2020-06-20 00:49:05 +00:00
|
|
|
|
Define the color palette used by :terminal when in GUI Vim
|
|
|
|
|
or in TUI Vim when 'termguicolors' is enabled. If this list
|
|
|
|
|
is empty or if it doesn't contain exactly 16 items, the corresponding
|
|
|
|
|
Vim variable won't be set.
|
|
|
|
|
|
|
|
|
|
The expected values are colors defined in step 3.
|
|
|
|
|
|
|
|
|
|
Terminal emulators use a basic palette of 16 colors that can be
|
|
|
|
|
addressed by CLI and TUI tools via their name or their index, from
|
|
|
|
|
0 to 15. The list is not really standardized but it is generally
|
|
|
|
|
assumed to look like this:
|
|
|
|
|
|
|
|
|
|
| Index | Name |
|
|
|
|
|
|:------:|:-------------:|
|
|
|
|
|
| 1 | black |
|
|
|
|
|
| 2 | darkred |
|
|
|
|
|
| 3 | darkgreen |
|
|
|
|
|
| 4 | darkyellow |
|
|
|
|
|
| 5 | darkblue |
|
|
|
|
|
| 6 | darkmagenta |
|
|
|
|
|
| 7 | darkcyan |
|
|
|
|
|
| 8 | gray |
|
|
|
|
|
| 9 | darkgray |
|
|
|
|
|
| 10 | red |
|
|
|
|
|
| 11 | green |
|
|
|
|
|
| 12 | yellow |
|
|
|
|
|
| 13 | blue |
|
|
|
|
|
| 14 | magenta |
|
|
|
|
|
| 15 | cyan |
|
|
|
|
|
| 16 | white |
|
|
|
|
|
|
|
|
|
|
While you are certainly free to make colors 0 to 7 shades of blue,
|
|
|
|
|
this will inevitably cause usability issues so… be careful.
|
|
|
|
|
]]
|
|
|
|
|
|
|
|
|
|
local terminal_ansi_colors = {
|
|
|
|
|
[1] = black,
|
|
|
|
|
[2] = red_dark,
|
|
|
|
|
[3] = green_dark,
|
|
|
|
|
[4] = orange,
|
|
|
|
|
[5] = blue,
|
|
|
|
|
[6] = magenta_dark,
|
|
|
|
|
[7] = teal,
|
|
|
|
|
[8] = gray,
|
|
|
|
|
[9] = gray_dark,
|
|
|
|
|
[10] = red,
|
|
|
|
|
[11] = green,
|
|
|
|
|
[12] = yellow,
|
|
|
|
|
[13] = turqoise,
|
|
|
|
|
[14] = purple,
|
|
|
|
|
[15] = cyan,
|
|
|
|
|
[16] = gray_light
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
--[[ Step 5: Sourcing
|
|
|
|
|
When you wish to load your colorscheme, you will not use the `colorscheme` command like normal.
|
|
|
|
|
|
|
|
|
|
Instead, you will source this file with `:luafile stdpath('config') . '/lua/<filename>.lua'`
|
|
|
|
|
|
|
|
|
|
See `:help luafile` and `:help stdpath` for more information.
|
|
|
|
|
|
|
|
|
|
These online resources can help you design your colorscheme:
|
|
|
|
|
|
|
|
|
|
1. the xterm palette.
|
|
|
|
|
* http://upload.wikimedia.org/wikipedia/en/1/15/Xterm_256color_chart.svg
|
|
|
|
|
2. play with hexadecimal colors right in the address bar (currently down).
|
|
|
|
|
* http://whatcolor.herokuapp.com/
|
|
|
|
|
3. similar concept, fuzzier implementation.
|
|
|
|
|
* http://color.hailpixel.com/
|
|
|
|
|
4. similar concept, fancier implementation.
|
|
|
|
|
* http://colourco.de/
|
|
|
|
|
5. extract a palette from an image.
|
|
|
|
|
* http://www.colr.org/
|
|
|
|
|
6. search for 'word', get images and color palettes.
|
|
|
|
|
* http://colores.manugarri.com/
|
|
|
|
|
7. user-created palettes.
|
|
|
|
|
* http://www.colourlovers.com/palettes
|
|
|
|
|
8. a no-nonsense colorscheme generator.
|
|
|
|
|
* http://www.pluaang.dk/color+scheme/
|
|
|
|
|
9. Adobe's fancy colorscheme generator.
|
|
|
|
|
* https://color.adobe.com/
|
|
|
|
|
10. The classic 'Color Scheme Designer', rebranded.
|
|
|
|
|
* http://paletton.com/
|
|
|
|
|
11. A very smart palette generator.
|
|
|
|
|
* http://vrl.cs.brown.edu/color
|
2020-06-20 03:53:31 +00:00
|
|
|
|
12. 'I Made My Own Colour Scheme and You Can Too!'.
|
2020-06-20 00:49:05 +00:00
|
|
|
|
* https://cmcenroe.me/2018/04/03/colour-scheme.html
|
|
|
|
|
|
|
|
|
|
A few general advices:
|
|
|
|
|
|
2020-06-20 03:53:31 +00:00
|
|
|
|
* The Windows console is limited to the 16 so-called 'ANSI' colors but it used to
|
2020-06-20 00:49:05 +00:00
|
|
|
|
have a few of them interverted which makes numbers impractical. Use color names
|
|
|
|
|
instead of numbers: :help cterm-colors
|
|
|
|
|
* The Windows console (yeah…) doesn't do italics, underlines or bolded text;
|
|
|
|
|
it is limited to normal and reverse. Keep that in mind if you want
|
|
|
|
|
your colorscheme to be usable in as many environments as possible by as many
|
|
|
|
|
people as possible.
|
|
|
|
|
* Actually, terminal emulators rarely do italics.
|
|
|
|
|
* The Windows Terminal, however, is capable of more.
|
|
|
|
|
* All of the terminal emulators in use these days allow their users to
|
2020-06-20 03:53:31 +00:00
|
|
|
|
change the 16 so-called 'ANSI' colors. It is also possible on some platforms
|
2020-06-20 00:49:05 +00:00
|
|
|
|
to change some or all of the 256 colors in the xterm palette. Don't take
|
|
|
|
|
anything for granted.
|
|
|
|
|
* When used against a light background, strong colors work better than muted
|
|
|
|
|
ones. Light or dark doesn't really matters. Also, it is harder to discriminate
|
|
|
|
|
between two similar colors on a light background.
|
|
|
|
|
* Both strong and muted colors work well against a dark background. It is also
|
|
|
|
|
easier to work with similar colors, but dark colors don't work at all.
|
|
|
|
|
* Use as many text samples as possible. String-heavy languages may look completely
|
|
|
|
|
different than keyword-heavy ones. This can have an impact on the usability
|
|
|
|
|
of your colorscheme.
|
|
|
|
|
* Most terminal emulators and terminal multiplexers currently in use on unix-like
|
|
|
|
|
systems support 256 colors but they almost always default to a '$TERM' that tells
|
|
|
|
|
Vim otherwise. Your users will need to make sure their terminal emulator/multiplexer
|
|
|
|
|
is correctly set up if they want to enjoy the best possible experience.
|
|
|
|
|
|
|
|
|
|
Many thanks to Barry Arthur (https://github.com/dahu) for the original idea.
|
|
|
|
|
|
|
|
|
|
* You don't need to edit anything beyond this line. *
|
|
|
|
|
]]
|
|
|
|
|
|
|
|
|
|
require(name .. '/colorscheme')(
|
|
|
|
|
name,
|
|
|
|
|
Normal,
|
|
|
|
|
highlights,
|
|
|
|
|
terminal_ansi_colors
|
|
|
|
|
)
|