2020-06-25 20:45:31 +00:00
|
|
|
|
lua << EOF
|
2020-07-16 01:37:03 +00:00
|
|
|
|
-- This file should be edited by the user. Read the instructions of each section and then edit them as desired.
|
|
|
|
|
|
2020-06-25 20:45:31 +00:00
|
|
|
|
--[[ Highlite, a Neovim colorscheme template.
|
|
|
|
|
* Author: Iron-E (https://github.com/Iron-E)
|
|
|
|
|
* Repository: https://github.com/nvim-highlite
|
|
|
|
|
|
2020-09-05 16:35:42 +00:00
|
|
|
|
Initially forked from vim-rnb, a Vim colorsheme template:
|
2020-06-25 20:45:31 +00:00
|
|
|
|
* Author: Romain Lafourcade (https://github.com/romainl)
|
|
|
|
|
* Canonical URL: https://github.com/romainl/vim-rnb
|
|
|
|
|
]]
|
|
|
|
|
|
|
|
|
|
--[[ Introduction
|
2020-07-02 17:06:31 +00:00
|
|
|
|
This template is designed to help Neovim users create their own colorschemes without much effort.
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
2020-07-02 17:06:31 +00:00
|
|
|
|
You will not need any additional tooling to run this file. Just open it in Neovim and follow the instructions.
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
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
|
2020-07-02 17:06:31 +00:00
|
|
|
|
* 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.
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
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 | module name | template filename |
|
|
|
|
|
|:-----------------:|:-----------:|:-----------------:|
|
|
|
|
|
| foobar | foobar | foobar.lua |
|
2020-09-05 16:35:42 +00:00
|
|
|
|
| foo-bar | foo_bar | foo_bar.lua |
|
|
|
|
|
| foo bar | foo_bar | foo_bar.lua |
|
2020-06-25 20:45:31 +00:00
|
|
|
|
| foo_bar | foo_bar | foo_bar.lua |
|
2020-07-02 17:06:31 +00:00
|
|
|
|
|
|
|
|
|
Rename the following files:
|
|
|
|
|
* `colors/highlite.vim`
|
|
|
|
|
* `lua/highlite.lua`
|
|
|
|
|
|
|
|
|
|
Where 'highlite' is the name of your colorscheme.
|
2020-09-05 16:35:42 +00:00
|
|
|
|
|
|
|
|
|
TIP: If you are on a Unix-based system (or have WSL on Windows) you can use the setup script at the root of this repo.
|
|
|
|
|
See the README for more details.
|
2020-06-25 20:45:31 +00:00
|
|
|
|
]]
|
|
|
|
|
|
2020-09-05 16:35:42 +00:00
|
|
|
|
|
2020-06-25 20:45:31 +00:00
|
|
|
|
--[[ Step 2: Information
|
2020-09-05 15:30:54 +00:00
|
|
|
|
In this step you will define information that helps Neovim process:
|
|
|
|
|
|
|
|
|
|
1. How users access your colorscheme;
|
|
|
|
|
2. How your colorscheme should be rendered.
|
2020-06-25 20:45:31 +00:00
|
|
|
|
]]
|
|
|
|
|
|
2020-09-05 15:30:54 +00:00
|
|
|
|
-- This is the name of your colorscheme which will be used as per |g:colors_name|.
|
2020-07-02 17:06:31 +00:00
|
|
|
|
vim.g.colors_name = 'highlite'
|
2020-06-25 20:45:31 +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.
|
|
|
|
|
'#<hex color code>', -- Hexadecimal color used in GVim/MacVim or 'NONE'.
|
2020-09-05 15:30:54 +00:00
|
|
|
|
<16-bit color code>, -- Integer 0–255 used by terminals supporting 256 colors or 'NONE'.
|
|
|
|
|
'<ANSI color name>' -- color name used by less capable color terminals, can be 'darkred',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
'red', 'darkgreen', 'green', 'darkyellow', 'yellow', 'darkblue',
|
|
|
|
|
'blue', 'darkmagenta', 'magenta', 'black', 'darkgrey', 'grey',
|
|
|
|
|
'white', or 'NONE'
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
NOTE: |Replace-mode| will probably be useful here.
|
|
|
|
|
]]
|
|
|
|
|
|
2020-09-05 16:35:42 +00:00
|
|
|
|
local black = {'#202020', 0, 'black'}
|
|
|
|
|
local gray = {'#808080', 244, 'gray'}
|
2020-06-25 20:45:31 +00:00
|
|
|
|
local gray_dark = {'#353535', 236, 'darkgrey'}
|
|
|
|
|
local gray_darker = {'#505050', 244, 'gray'}
|
|
|
|
|
local gray_light = {'#c0c0c0', 251, 'gray'}
|
2020-09-05 16:35:42 +00:00
|
|
|
|
local white = {'#ffffff', 15, 'white'}
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
2020-09-02 16:30:41 +00:00
|
|
|
|
local tan = {'#f4c069', 180, 'darkyellow'}
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
local red = {'#ee4a59', 196, 'red'}
|
|
|
|
|
local red_dark = {'#a80000', 124, 'darkred'}
|
|
|
|
|
local red_light = {'#ff4090', 203, 'red'}
|
|
|
|
|
|
2020-09-05 16:35:42 +00:00
|
|
|
|
local orange = {'#ff8900', 208, 'darkyellow'}
|
2020-06-25 20:45:31 +00:00
|
|
|
|
local orange_light = {'#f0af00', 214, 'yellow'}
|
|
|
|
|
|
|
|
|
|
local yellow = {'#f0df33', 220, 'yellow'}
|
|
|
|
|
|
|
|
|
|
local green_dark = {'#50de60', 83, 'darkgreen'}
|
|
|
|
|
local green = {'#77ff00', 72, 'green'}
|
|
|
|
|
local green_light = {'#a0ff70', 72, 'green'}
|
|
|
|
|
|
|
|
|
|
local blue = {'#7090ff', 63, 'darkblue'}
|
2020-09-27 23:18:44 +00:00
|
|
|
|
local cyan = {'#33efff', 87, 'cyan'}
|
|
|
|
|
local ice = {'#49a0f0', 63, 'cyan'}
|
|
|
|
|
local teal = {'#00d0c0', 38, 'cyan'}
|
2020-06-25 20:45:31 +00:00
|
|
|
|
local turqoise = {'#2bff99', 33, 'blue'}
|
|
|
|
|
|
|
|
|
|
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'}
|
|
|
|
|
|
|
|
|
|
--[[ Step 4: highlights
|
|
|
|
|
You can define highlight groups like this:
|
|
|
|
|
|
|
|
|
|
```lua
|
|
|
|
|
<highlight group name> = {
|
2020-11-13 21:36:26 +00:00
|
|
|
|
-- The color for the background, `NONE`, `FG` or `BG`
|
|
|
|
|
bg = <color>,
|
|
|
|
|
|
|
|
|
|
-- The color for the foreground, `NONE`, `FG` or `BG`
|
|
|
|
|
fg = <color>
|
|
|
|
|
|
|
|
|
|
-- The |highlight-blend| value, if one is desired.
|
|
|
|
|
[, blend = <integer>]
|
|
|
|
|
|
2020-09-06 18:30:55 +00:00
|
|
|
|
-- Style can be 'bold', 'italic', and more. See |attr-list| for more information.
|
|
|
|
|
-- It can also have a color, and/or multiple <cterm>s.
|
2020-11-13 21:36:26 +00:00
|
|
|
|
[, style = <cterm>|{<cterm> (, <cterm>) [color=<color>]} ]
|
2020-06-25 20:45:31 +00:00
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
2020-09-05 15:30:54 +00:00
|
|
|
|
You can also link one highlight group to another:
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
```lua
|
2020-07-16 01:37:03 +00:00
|
|
|
|
<highlight group name> = '<highlight group name>'
|
2020-06-25 20:45:31 +00:00
|
|
|
|
```
|
2020-09-06 18:30:55 +00:00
|
|
|
|
____________________________________________________________________________
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
2020-09-06 18:30:55 +00:00
|
|
|
|
Here is an example to define `SpellBad` and then link some new group
|
|
|
|
|
`SpellWorse` to it:
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
```lua
|
|
|
|
|
SpellBad = { -- ← name of the highlight group
|
2020-09-05 15:30:54 +00:00
|
|
|
|
bg=NONE, -- background color
|
2020-06-25 20:45:31 +00:00
|
|
|
|
fg=red, -- foureground color
|
|
|
|
|
style={ -- the style
|
|
|
|
|
'undercurl', -- undercurl (squiggly line)
|
|
|
|
|
color=red -- the color of the undercurl
|
|
|
|
|
}
|
2020-09-05 15:30:54 +00:00
|
|
|
|
},
|
|
|
|
|
SpellWorse = 'SpellBad'
|
2020-06-25 20:45:31 +00:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
If you weren't satisfied with undercurl, and also wanted another effect, you can
|
|
|
|
|
add another one below 'undercurl' and it will be applied as well:
|
|
|
|
|
|
|
|
|
|
```lua
|
|
|
|
|
SpellBad = { -- ← name of the highlight group
|
2020-09-06 18:30:55 +00:00
|
|
|
|
bg=NONE, -- background color
|
2020-06-25 20:45:31 +00:00
|
|
|
|
fg=red, -- foureground color
|
|
|
|
|
style={ -- the style
|
|
|
|
|
'undercurl', -- undercurl (squiggly line)
|
|
|
|
|
'standout'
|
|
|
|
|
color=red -- the color of the undercurl
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
2020-09-06 18:30:55 +00:00
|
|
|
|
____________________________________________________________________________
|
|
|
|
|
|
|
|
|
|
If you want to create a colorscheme that is responsive to the user's
|
|
|
|
|
'background' setting, you can specify special `light` and `dark` keys to
|
|
|
|
|
define how each group should be highlighted in each case.
|
|
|
|
|
|
|
|
|
|
```lua
|
|
|
|
|
SpellBad = {
|
|
|
|
|
bg=NONE,
|
|
|
|
|
dark={fg=white},
|
|
|
|
|
light={fg=black},
|
|
|
|
|
style={'undercurl', color=red}
|
|
|
|
|
}
|
|
|
|
|
```
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
2020-09-06 18:30:55 +00:00
|
|
|
|
Whenever the user changes their 'background' setting, the settings inside of
|
|
|
|
|
whichever key is relevant will be loaded.
|
|
|
|
|
____________________________________________________________________________
|
|
|
|
|
|
|
|
|
|
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 |highlight-default|, some from |group-name|, and others from
|
|
|
|
|
common syntax groups. Both help sections are good reads.
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
NOTE: |Replace-mode| will probably be useful here.
|
|
|
|
|
|
2020-09-06 18:30:55 +00:00
|
|
|
|
NOTE: /As long as you do not remove any highlight groups or colors/, you can
|
|
|
|
|
safely ignore any highlight groups that are `link`ed to others.
|
|
|
|
|
|
2020-07-02 17:06:31 +00:00
|
|
|
|
For example, programming languages almost exclusively link to the 1st
|
2020-09-06 18:30:55 +00:00
|
|
|
|
and 2nd sections, so as long as you define everything there you will
|
|
|
|
|
automatically be defining the rest of the highlights, which is one of
|
|
|
|
|
the benefits of using this template.
|
2020-06-25 20:45:31 +00:00
|
|
|
|
]]
|
|
|
|
|
|
|
|
|
|
--[[ DO NOT EDIT `BG`, `FG`, or `NONE`.
|
2020-09-05 15:57:26 +00:00
|
|
|
|
Feel free to uncomment `BG` and `NONE`. They are not used by default so they are commented out.
|
2020-06-25 20:45:31 +00:00
|
|
|
|
]]
|
|
|
|
|
-- local BG = 'bg'
|
|
|
|
|
local FG = 'fg'
|
2020-09-05 15:57:26 +00:00
|
|
|
|
-- local NONE = 'NONE'
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ These are the ones you should edit. ]]
|
|
|
|
|
-- This is the only highlight that must be defined separately.
|
2020-09-05 15:56:08 +00:00
|
|
|
|
local highlight_group_normal = {bg=black, fg=gray_light}
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
-- This is where the rest of your highlights should go.
|
|
|
|
|
local highlight_groups = {
|
|
|
|
|
--[[ 4.1. Text Analysis ]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
Comment = {fg=gray, style='italic'},
|
|
|
|
|
NonText = {fg=gray_darker},
|
2020-07-16 01:37:03 +00:00
|
|
|
|
EndOfBuffer = 'NonText',
|
|
|
|
|
Whitespace = 'NonText',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.1.1. Literals]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
Constant = {fg=orange_light},
|
|
|
|
|
String = {fg=green},
|
|
|
|
|
Character = {fg=red_light},
|
|
|
|
|
Number = {fg=pink_light},
|
|
|
|
|
Boolean = {fg=yellow},
|
2020-07-16 01:37:03 +00:00
|
|
|
|
Float = 'Number',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.1.2. Identifiers]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
Identifier = {fg=FG},
|
|
|
|
|
Function = {fg=purple},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.1.3. Syntax]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
Statement = {fg=ice},
|
|
|
|
|
Conditional = {fg=ice, style='italic'},
|
|
|
|
|
Repeat = {fg=turqoise, style='bold'},
|
|
|
|
|
Label = {fg=pink, style='italic'},
|
|
|
|
|
Operator = {fg=green_dark},
|
|
|
|
|
Keyword = {fg=teal},
|
|
|
|
|
Exception = {fg=red_light, style='bold'},
|
2020-07-16 19:06:01 +00:00
|
|
|
|
Noise = 'Delimiter',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.1.4. Metatextual Information]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
PreProc = {fg=tan},
|
|
|
|
|
Include = {fg=green_light, style='nocombine'},
|
|
|
|
|
Define = {fg=blue, style='nocombine'},
|
|
|
|
|
Macro = {fg=blue, style='italic'},
|
|
|
|
|
PreCondit = {fg=tan, style='italic'},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.1.5. Semantics]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
Type = {fg=cyan},
|
|
|
|
|
StorageClass = {fg=orange_light, style='bold'},
|
|
|
|
|
Structure = {fg=blue, style='bold'},
|
|
|
|
|
Typedef = {fg=cyan, style='italic'},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.1.6. Edge Cases]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
Special = {fg=magenta, style='bold'},
|
|
|
|
|
SpecialChar = {fg=red_light, style='italic'},
|
2020-07-16 01:37:03 +00:00
|
|
|
|
SpecialKey = 'Character',
|
|
|
|
|
Tag = 'Underlined',
|
2020-09-05 15:56:08 +00:00
|
|
|
|
Delimiter = {fg=white},
|
|
|
|
|
SpecialComment = {fg=gray, style={'bold', 'nocombine'}},
|
2020-07-16 01:37:03 +00:00
|
|
|
|
Debug = 'WarningMsg',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.1.7. Help Syntax]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
Underlined = {fg=turqoise, style='underline'},
|
|
|
|
|
Ignore = {fg=gray},
|
|
|
|
|
Error = {bg=red_dark, fg=white, style='bold'},
|
|
|
|
|
Todo = {fg=yellow, style={'bold', 'underline'}},
|
2020-07-16 01:37:03 +00:00
|
|
|
|
helpHyperTextJump = 'Underlined',
|
|
|
|
|
helpSpecial = 'Function',
|
2020-09-05 15:56:08 +00:00
|
|
|
|
Hint = {bg=magenta, fg=black, style='bold'},
|
|
|
|
|
Info = {bg=pink_light, fg=black, style='bold'},
|
|
|
|
|
Warning = {bg=orange, fg=black, style='bold'},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2... Editor UI ]]
|
|
|
|
|
--[[ 4.2.1. Status Line]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
StatusLine = {bg=gray_darker, fg=green_light},
|
|
|
|
|
StatusLineNC = {bg=gray_darker, fg=gray},
|
2020-07-16 01:37:03 +00:00
|
|
|
|
StatusLineTerm = 'StatusLine',
|
|
|
|
|
StatusLineTermNC = 'StatusLineNC',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.2. Separators]]
|
2020-11-15 09:49:48 +00:00
|
|
|
|
VertSplit = {fg=white},
|
2020-09-05 15:56:08 +00:00
|
|
|
|
TabLine = {bg=gray_darker, fg=FG},
|
2020-11-15 09:49:48 +00:00
|
|
|
|
TabLineFill = 'NonText',
|
|
|
|
|
TabLineSel = {bg=BG, fg=FG},
|
2020-09-05 15:56:08 +00:00
|
|
|
|
Title = {style='bold'},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.3. Conditional Line Highlighting]]
|
|
|
|
|
--Conceal={}
|
2020-09-05 15:56:08 +00:00
|
|
|
|
CursorLine = {bg=gray_dark},
|
|
|
|
|
CursorLineNr = {bg=gray_dark, fg=pink},
|
2020-07-16 01:37:03 +00:00
|
|
|
|
debugBreakpoint = 'ErrorMsg',
|
|
|
|
|
debugPC = 'ColorColumn',
|
2020-09-05 15:56:08 +00:00
|
|
|
|
LineNr = {fg=gray},
|
|
|
|
|
QuickFixLine = {bg=gray_darker},
|
|
|
|
|
Visual = {style='inverse'},
|
|
|
|
|
VisualNOS = {bg=gray_darker},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.4. Popup Menu]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
Pmenu = {bg=gray_dark, fg=FG},
|
|
|
|
|
PmenuSbar = {bg=black},
|
|
|
|
|
PmenuSel = {fg=FG},
|
|
|
|
|
PmenuThumb = {bg=white},
|
|
|
|
|
WildMenu = {},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.5. Folds]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
FoldColumn = {bg=gray_darker, style='bold'},
|
|
|
|
|
Folded = {bg=purple_light, fg=black, style='italic'},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.6. Diffs]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
DiffAdd = {fg=green_dark, style='inverse'},
|
|
|
|
|
DiffChange = {fg=yellow, style='inverse'},
|
|
|
|
|
DiffDelete = {fg=red, style='inverse'},
|
2020-11-15 09:49:48 +00:00
|
|
|
|
DiffText = {fg=FG},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.7. Searching]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
IncSearch = {style='inverse'},
|
|
|
|
|
Search = {style={'underline', color=white}},
|
|
|
|
|
MatchParen = {fg=green, style={'bold', 'underline'}},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.8. Spelling]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
SpellBad = {style={'undercurl', color=red}},
|
|
|
|
|
SpellCap = {style={'undercurl', color=yellow}},
|
|
|
|
|
SpellLocal = {style={'undercurl', color=green}},
|
|
|
|
|
SpellRare = {style={'undercurl', color=orange}},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.9. Conditional Column Highlighting]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
ColorColumn = {style='inverse'},
|
|
|
|
|
SignColumn = {},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.10. Messages]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
ErrorMsg = {fg=red, style='bold'},
|
|
|
|
|
HintMsg = {fg=magenta, style='bold'},
|
|
|
|
|
InfoMsg = {fg=pink_light, style='bold'},
|
|
|
|
|
ModeMsg = {fg=yellow},
|
|
|
|
|
WarningMsg = {fg=orange, style='bold'},
|
|
|
|
|
Question = {fg=orange_light, style='underline'},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.11. LSP ]]
|
2020-11-13 08:23:48 +00:00
|
|
|
|
LspDiagnosticsDefaultError = 'Error',
|
|
|
|
|
LspDiagnosticsFloatingError = 'ErrorMsg',
|
|
|
|
|
LspDiagnosticsSignError = 'ErrorMsg',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
2020-11-13 08:23:48 +00:00
|
|
|
|
LspDiagnosticsDefaultWarning = 'Warning',
|
|
|
|
|
LspDiagnosticsFloatingWarning = 'WarningMsg',
|
|
|
|
|
LspDiagnosticsSignWarning = 'WarningMsg',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
2020-11-13 08:23:48 +00:00
|
|
|
|
LspDiagnosticsDefaultHint = 'Hint',
|
|
|
|
|
LspDiagnosticsFloatingHint = 'HintMsg',
|
|
|
|
|
LspDiagnosticsSignHint = 'HintMsg',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
2020-11-13 08:23:48 +00:00
|
|
|
|
LspDiagnosticsDefaultInformation = 'Info',
|
|
|
|
|
LspDiagnosticsFloatingInformation = 'InfoMsg',
|
|
|
|
|
LspDiagnosticsSignInformation = 'InfoMsg',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
2020-09-05 15:56:08 +00:00
|
|
|
|
LspDiagnosticsUnderline = {style={'undercurl', color=white}},
|
2020-07-16 01:37:03 +00:00
|
|
|
|
LspDiagnosticsUnderlineError = 'CocErrorHighlight',
|
2020-09-05 15:56:08 +00:00
|
|
|
|
LspDiagnosticsUnderlineHint = 'CocHintHighlight',
|
|
|
|
|
LspDiagnosticsUnderlineInfo = 'CocInfoHighlight',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
LspDiagnosticsUnderlineWarning = 'CocWarningHighlight',
|
2020-07-06 19:05:49 +00:00
|
|
|
|
|
2020-06-25 20:45:31 +00:00
|
|
|
|
--[[ 4.2.12. Cursor ]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
Cursor = {style='inverse'},
|
2020-07-16 01:37:03 +00:00
|
|
|
|
CursorIM = 'Cursor',
|
2020-09-05 15:56:08 +00:00
|
|
|
|
CursorColumn = {bg=gray_dark},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.13. Misc ]]
|
2020-09-05 22:11:59 +00:00
|
|
|
|
Directory = {fg=ice, style='bold'},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3. Programming Languages
|
|
|
|
|
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.
|
|
|
|
|
]]
|
|
|
|
|
--[[ 4.3.1. C ]]
|
2020-07-16 01:37:03 +00:00
|
|
|
|
cConstant = 'Constant',
|
|
|
|
|
cCustomClass = 'Type',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.2. C++ ]]
|
2020-07-16 01:37:03 +00:00
|
|
|
|
cppSTLexception = 'Exception',
|
|
|
|
|
cppSTLnamespace = 'String',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.3 C# ]]
|
2020-07-16 01:37:03 +00:00
|
|
|
|
csBraces = 'Delimiter',
|
|
|
|
|
csClass = 'Structure',
|
|
|
|
|
csClassType = 'Type',
|
|
|
|
|
csContextualStatement = 'Conditional',
|
|
|
|
|
csEndColon = 'Delimiter',
|
2020-08-18 16:57:10 +00:00
|
|
|
|
csGeneric = 'Typedef',
|
2020-08-18 18:03:10 +00:00
|
|
|
|
csInterpolation = 'Include',
|
|
|
|
|
csInterpolationDelimiter = 'SpecialChar',
|
|
|
|
|
csLogicSymbols = 'Operator',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
csModifier = 'Keyword',
|
|
|
|
|
csNew = 'Operator',
|
|
|
|
|
csNewType = 'Type',
|
|
|
|
|
csParens = 'Delimiter',
|
|
|
|
|
csPreCondit = 'PreProc',
|
|
|
|
|
csRepeat = 'Repeat',
|
|
|
|
|
csStorage = 'StorageClass',
|
|
|
|
|
csUnspecifiedStatement = 'Statement',
|
|
|
|
|
csXmlTag = 'Define',
|
|
|
|
|
csXmlTagName = 'Define',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.4. CSS ]]
|
2020-07-16 19:06:01 +00:00
|
|
|
|
cssBraces = 'Delimiter',
|
|
|
|
|
cssProp = 'Keyword',
|
|
|
|
|
cssSelectorOp = 'Operator',
|
|
|
|
|
cssTagName = 'Type',
|
|
|
|
|
cssTagName = 'htmlTagName',
|
|
|
|
|
scssAmpersand = 'Special',
|
2020-09-05 22:11:59 +00:00
|
|
|
|
scssAttribute = 'Label',
|
2020-07-16 19:06:01 +00:00
|
|
|
|
scssBoolean = 'Boolean',
|
|
|
|
|
scssDefault = 'Keyword',
|
|
|
|
|
scssElse = 'PreCondit',
|
|
|
|
|
scssIf = 'PreCondit',
|
|
|
|
|
scssInclude = 'Include',
|
|
|
|
|
scssSelectorChar = 'Operator',
|
2020-09-05 22:11:59 +00:00
|
|
|
|
scssSelectorName = 'Identifier',
|
2020-07-16 19:06:01 +00:00
|
|
|
|
scssVariable = 'Define',
|
|
|
|
|
scssVariableAssignment = 'Operator',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.5. Dart ]]
|
2020-07-16 01:37:03 +00:00
|
|
|
|
dartLibrary = 'Statement',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.6. dot ]]
|
2020-07-16 01:37:03 +00:00
|
|
|
|
dotKeyChar = 'Character',
|
|
|
|
|
dotType = 'Type',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.7. Go ]]
|
2020-07-16 01:37:03 +00:00
|
|
|
|
goBlock = 'Delimiter',
|
|
|
|
|
goBoolean = 'Boolean',
|
|
|
|
|
goBuiltins = 'Operator',
|
|
|
|
|
goField = 'Identifier',
|
|
|
|
|
goFloat = 'Float',
|
|
|
|
|
goFormatSpecifier = 'Character',
|
|
|
|
|
goFunction = 'Function',
|
|
|
|
|
goFunctionCall = 'goFunction',
|
2020-09-05 15:56:08 +00:00
|
|
|
|
goFunctionReturn = {},
|
2020-07-16 01:37:03 +00:00
|
|
|
|
goMethodCall = 'goFunctionCall',
|
|
|
|
|
goParamType = 'goReceiverType',
|
|
|
|
|
goPointerOperator = 'SpecialChar',
|
|
|
|
|
goPredefinedIdentifiers = 'Constant',
|
|
|
|
|
goReceiver = 'goBlock',
|
|
|
|
|
goReceiverType = 'goTypeName',
|
|
|
|
|
goSimpleParams = 'goBlock',
|
|
|
|
|
goType = 'Type',
|
|
|
|
|
goTypeConstructor = 'goFunction',
|
|
|
|
|
goTypeName = 'Type',
|
|
|
|
|
goVarAssign = 'Identifier',
|
|
|
|
|
goVarDefs = 'goVarAssign',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.8. HTML ]]
|
2020-07-16 19:06:01 +00:00
|
|
|
|
htmlArg = 'Label',
|
2020-09-05 15:56:08 +00:00
|
|
|
|
htmlBold = {fg=gray_light, style='bold'},
|
2020-07-16 19:06:01 +00:00
|
|
|
|
htmlTitle = 'htmlBold',
|
|
|
|
|
htmlEndTag = 'htmlTag',
|
|
|
|
|
htmlH1 = 'markdownH1',
|
|
|
|
|
htmlH2 = 'markdownH2',
|
|
|
|
|
htmlH3 = 'markdownH3',
|
|
|
|
|
htmlH4 = 'markdownH4',
|
|
|
|
|
htmlH5 = 'markdownH5',
|
|
|
|
|
htmlH6 = 'markdownH6',
|
2020-09-05 15:56:08 +00:00
|
|
|
|
htmlItalic = {style='italic'},
|
2020-07-16 19:06:01 +00:00
|
|
|
|
htmlSpecialTagName = 'Keyword',
|
|
|
|
|
htmlTag = 'Special',
|
|
|
|
|
htmlTagN = 'Typedef',
|
|
|
|
|
htmlTagName = 'Type',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.9. Java ]]
|
2020-07-16 01:37:03 +00:00
|
|
|
|
javaClassDecl = 'Structure',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.10. JavaScript ]]
|
2020-07-16 01:37:03 +00:00
|
|
|
|
jsFuncBlock = 'Function',
|
|
|
|
|
jsObjectKey = 'Type',
|
|
|
|
|
jsReturn = 'Keyword',
|
|
|
|
|
jsVariableDef = 'Identifier',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.11. JSON ]]
|
2020-07-16 19:06:01 +00:00
|
|
|
|
jsonBraces = 'luaBraces',
|
2020-09-05 22:11:59 +00:00
|
|
|
|
jsonKeywordMatch = 'Operator',
|
2020-07-16 19:06:01 +00:00
|
|
|
|
jsonNull = 'Constant',
|
2020-09-05 22:11:59 +00:00
|
|
|
|
jsonQuote = 'Delimiter',
|
|
|
|
|
jsonString = 'String',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
jsonStringSQError = 'Exception',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
2020-07-15 20:00:31 +00:00
|
|
|
|
--[[ 4.3.12. Lua ]]
|
2020-07-16 01:37:03 +00:00
|
|
|
|
luaBraces = 'Structure',
|
|
|
|
|
luaBrackets = 'Delimiter',
|
|
|
|
|
luaBuiltin = 'Keyword',
|
|
|
|
|
luaComma = 'Delimiter',
|
2020-08-21 19:39:34 +00:00
|
|
|
|
luaFuncArgName = 'Identifier',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
luaFuncCall = 'Function',
|
|
|
|
|
luaFuncId = 'luaNoise',
|
2020-08-21 19:39:34 +00:00
|
|
|
|
luaFuncKeyword = 'Type',
|
|
|
|
|
luaFuncName = 'Function',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
luaFuncParens = 'Delimiter',
|
|
|
|
|
luaFuncTable = 'Structure',
|
|
|
|
|
luaLocal = 'Type',
|
|
|
|
|
luaNoise = 'Operator',
|
|
|
|
|
luaParens = 'Delimiter',
|
2020-08-21 19:42:23 +00:00
|
|
|
|
luaSpecialTable = 'StorageClass',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
luaSpecialValue = 'Function',
|
2020-07-15 20:00:31 +00:00
|
|
|
|
|
2020-06-25 20:45:31 +00:00
|
|
|
|
--[[ 4.3.12. Make ]]
|
2020-07-16 01:37:03 +00:00
|
|
|
|
makeCommands = 'Statment',
|
|
|
|
|
makeSpecTarget = 'Type',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.13. Markdown ]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
markdownH1 = {fg=red, style='bold'},
|
|
|
|
|
markdownH2 = {fg=orange, style='bold'},
|
|
|
|
|
markdownH3 = {fg=yellow, style='bold'},
|
|
|
|
|
markdownH4 = {fg=green_dark, style='bold'},
|
|
|
|
|
markdownH5 = {fg=cyan, style='bold'},
|
|
|
|
|
markdownH6 = {fg=purple_light, style='bold'},
|
2020-09-06 21:34:49 +00:00
|
|
|
|
mkdBold = 'SpecialComment',
|
2020-09-28 17:19:21 +00:00
|
|
|
|
mkdCode = 'Keyword',
|
2020-09-06 22:33:22 +00:00
|
|
|
|
mkdCodeDelimiter = 'mkdBold',
|
2020-09-06 21:34:49 +00:00
|
|
|
|
mkdCodeStart = 'mkdCodeDelimiter',
|
|
|
|
|
mkdCodeEnd = 'mkdCodeStart',
|
2020-08-27 20:23:13 +00:00
|
|
|
|
mkdHeading = 'Delimiter',
|
2020-07-16 19:06:01 +00:00
|
|
|
|
mkdItalic = 'mkdBold',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
mkdListItem = 'Special',
|
2020-08-27 21:05:26 +00:00
|
|
|
|
mkdRule = 'Underlined',
|
2020-09-06 21:34:49 +00:00
|
|
|
|
texMathMatcher = 'Number',
|
|
|
|
|
texMathZoneX = 'Number',
|
|
|
|
|
texMathZoneY = 'Number',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.20. Python ]]
|
2020-07-16 01:37:03 +00:00
|
|
|
|
pythonBrackets = 'Delimiter',
|
|
|
|
|
pythonBuiltinFunc = 'Operator',
|
|
|
|
|
pythonBuiltinObj = 'Type',
|
|
|
|
|
pythonBuiltinType = 'Type',
|
|
|
|
|
pythonClass = 'Structure',
|
|
|
|
|
pythonClassParameters = 'pythonParameters',
|
|
|
|
|
pythonDecorator = 'PreProc',
|
|
|
|
|
pythonDottedName = 'Identifier',
|
|
|
|
|
pythonError = 'Error',
|
|
|
|
|
pythonException = 'Exception',
|
|
|
|
|
pythonInclude = 'Include',
|
|
|
|
|
pythonIndentError = 'pythonError',
|
|
|
|
|
pythonLambdaExpr = 'pythonOperator',
|
|
|
|
|
pythonOperator = 'Operator',
|
|
|
|
|
pythonParam = 'Identifier',
|
|
|
|
|
pythonParameters = 'Delimiter',
|
|
|
|
|
pythonSelf = 'Statement',
|
|
|
|
|
pythonSpaceError = 'pythonError',
|
|
|
|
|
pythonStatement = 'Statement',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.21. Ruby ]]
|
2020-07-16 01:37:03 +00:00
|
|
|
|
rubyClass = 'Structure',
|
|
|
|
|
rubyDefine = 'Define',
|
|
|
|
|
rubyInterpolationDelimiter = 'Delimiter',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.22. Rust ]]
|
2020-07-16 01:37:03 +00:00
|
|
|
|
rustKeyword = 'Keyword',
|
|
|
|
|
rustModPath = 'Include',
|
|
|
|
|
rustScopeDecl = 'Delimiter',
|
|
|
|
|
rustTrait = 'StorageClass',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.23. Scala ]]
|
2020-07-16 01:37:03 +00:00
|
|
|
|
scalaKeyword = 'Keyword',
|
|
|
|
|
scalaNameDefinition = 'Identifier',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.24. shell ]]
|
2020-08-21 19:39:34 +00:00
|
|
|
|
shDerefSimple = 'SpecialChar',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
shFunctionKey = 'Function',
|
2020-07-16 19:06:01 +00:00
|
|
|
|
shLoop = 'Repeat',
|
2020-09-02 17:15:31 +00:00
|
|
|
|
shParen = 'Delimiter',
|
2020-07-16 19:06:01 +00:00
|
|
|
|
shQuote = 'Delimiter',
|
|
|
|
|
shSet = 'Statement',
|
|
|
|
|
shTestOpr = 'Debug',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.25. Solidity ]]
|
2020-07-16 01:37:03 +00:00
|
|
|
|
solBuiltinType = 'Type',
|
|
|
|
|
solContract = 'Typedef',
|
|
|
|
|
solContractName = 'Function',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.26. TOML ]]
|
2020-07-16 01:37:03 +00:00
|
|
|
|
tomlComment = 'Comment',
|
|
|
|
|
tomlKey = 'Label',
|
|
|
|
|
tomlTable = 'StorageClass',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.27. VimScript ]]
|
2020-07-16 19:06:01 +00:00
|
|
|
|
helpSpecial = 'Special',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
vimFgBgAttrib = 'Constant',
|
|
|
|
|
vimHiCterm = 'Label',
|
|
|
|
|
vimHiCtermFgBg = 'vimHiCterm',
|
|
|
|
|
vimHiGroup = 'Typedef',
|
|
|
|
|
vimHiGui = 'vimHiCterm',
|
|
|
|
|
vimHiGuiFgBg = 'vimHiGui',
|
|
|
|
|
vimHiKeyList = 'Operator',
|
|
|
|
|
vimOption = 'Define',
|
|
|
|
|
vimSetEqual = 'Operator',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.28. XML ]]
|
2020-07-16 19:06:01 +00:00
|
|
|
|
xmlAttrib = 'htmlArg',
|
|
|
|
|
xmlEndTag = 'xmlTag',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
xmlEqual = 'Operator',
|
2020-07-16 19:06:01 +00:00
|
|
|
|
xmlTag = 'htmlTag',
|
|
|
|
|
xmlTagName = 'htmlTagName',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
2020-09-01 19:08:49 +00:00
|
|
|
|
--[[ 4.3.29. SQL ]]
|
2020-09-27 23:18:44 +00:00
|
|
|
|
sqlKeyword = 'Keyword',
|
|
|
|
|
sqlParen = 'Delimiter',
|
2020-09-27 22:56:34 +00:00
|
|
|
|
sqlSpecial = 'Constant',
|
2020-09-27 23:18:44 +00:00
|
|
|
|
sqlStatement = 'Statement',
|
|
|
|
|
sqlParenFunc = 'Function',
|
2020-09-01 19:08:49 +00:00
|
|
|
|
|
2020-09-02 16:30:41 +00:00
|
|
|
|
--[[ 4.3.30. dos INI ]]
|
|
|
|
|
dosiniHeader = 'Title',
|
|
|
|
|
|
2020-09-02 17:05:50 +00:00
|
|
|
|
--[[ 4.3.31. Crontab ]]
|
|
|
|
|
crontabDay = 'StorageClass',
|
|
|
|
|
crontabDow = 'String',
|
|
|
|
|
crontabHr = 'Number',
|
|
|
|
|
crontabMin = 'Float',
|
|
|
|
|
crontabMnth = 'Structure',
|
|
|
|
|
|
2020-09-09 20:42:04 +00:00
|
|
|
|
--[[ 4.3.32. PlantUML ]]
|
|
|
|
|
plantumlColonLine = {},
|
|
|
|
|
|
2020-11-11 15:48:55 +00:00
|
|
|
|
--[[ 4.3.33. YAML ]]
|
|
|
|
|
yamlKey = 'Label',
|
|
|
|
|
|
2020-06-25 20:45:31 +00:00
|
|
|
|
--[[ 4.4. Plugins
|
|
|
|
|
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.
|
|
|
|
|
]]
|
|
|
|
|
--[[ 4.4.1. ALE ]]
|
2020-07-16 01:37:03 +00:00
|
|
|
|
ALEErrorSign = 'ErrorMsg',
|
|
|
|
|
ALEWarningSign = 'WarningMsg',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.4.2. coc.nvim ]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
CocErrorHighlight = {style={'undercurl', color='red'}},
|
|
|
|
|
CocHintHighlight = {style={'undercurl', color='magenta'}},
|
|
|
|
|
CocInfoHighlight = {style={'undercurl', color='pink_light'}},
|
|
|
|
|
CocWarningHighlight = {style={'undercurl', color='orange'}},
|
2020-07-16 01:37:03 +00:00
|
|
|
|
CocErrorSign = 'ALEErrorSign',
|
|
|
|
|
CocHintSign = 'HintMsg',
|
|
|
|
|
CocInfoSign = 'InfoMsg',
|
|
|
|
|
CocWarningSign = 'ALEWarningSign',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.4.2. vim-jumpmotion / vim-easymotion ]]
|
2020-07-16 01:37:03 +00:00
|
|
|
|
EasyMotion = 'IncSearch',
|
|
|
|
|
JumpMotion = 'EasyMotion',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.4.4. vim-gitgutter / vim-signify ]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
GitGutterAdd = {fg=green},
|
|
|
|
|
GitGutterChange = {fg=yellow},
|
|
|
|
|
GitGutterDelete = {fg=red},
|
|
|
|
|
GitGutterChangeDelete = {fg=orange},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
2020-09-05 00:43:31 +00:00
|
|
|
|
SignifySignAdd = 'GitGutterAdd',
|
|
|
|
|
SignifySignChange = 'GitGutterChange',
|
|
|
|
|
SignifySignDelete = 'GitGutterDelete',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
SignifySignChangeDelete = 'GitGutterChangeDelete',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.4.5. vim-indent-guides ]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
IndentGuidesOdd = {bg=gray_darker},
|
|
|
|
|
IndentGuidesEven = {bg=gray_dark},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.4.7. NERDTree ]]
|
2020-09-05 00:43:31 +00:00
|
|
|
|
NERDTreeCWD = 'Label',
|
|
|
|
|
NERDTreeUp = 'Operator',
|
|
|
|
|
NERDTreeDir = 'Directory',
|
|
|
|
|
NERDTreeDirSlash = 'Delimiter',
|
|
|
|
|
NERDTreeOpenable = 'NERDTreeDir',
|
|
|
|
|
NERDTreeClosable = 'NERDTreeOpenable',
|
|
|
|
|
NERDTreeExecFile = 'Function',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
NERDTreeLinkTarget = 'Tag',
|
2020-09-04 17:02:09 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.4.8. nvim-treesitter ]]
|
|
|
|
|
TSConstBuiltin = 'Constant',
|
2020-09-05 00:43:31 +00:00
|
|
|
|
TSConstructor = 'Typedef',
|
|
|
|
|
TSFuncBuiltin = 'Function',
|
2020-09-04 17:02:09 +00:00
|
|
|
|
TSStringEscape = 'Character',
|
2020-09-05 00:43:31 +00:00
|
|
|
|
TSStringRegex = 'SpecialChar',
|
2020-09-04 17:02:09 +00:00
|
|
|
|
TSURI = 'Tag',
|
2020-09-05 00:43:31 +00:00
|
|
|
|
TSVariableBuiltin = 'Identifier',
|
2020-11-15 09:49:48 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.4.9. barbar.nvim ]]
|
2020-11-15 21:24:31 +00:00
|
|
|
|
BufferCurrent = 'TabLineSel',
|
|
|
|
|
BufferCurrentMod = {bg=black, fg=tan, style='bold'},
|
|
|
|
|
BufferCurrentSign = 'HintMsg',
|
|
|
|
|
BufferCurrentTarget = 'BufferCurrentSign',
|
|
|
|
|
|
|
|
|
|
BufferInactive = 'BufferVisible',
|
|
|
|
|
BufferInactiveMod = 'BufferVisibleMod',
|
|
|
|
|
BufferInactiveSign = {bg=gray_darker, fg=gray_darker},
|
|
|
|
|
BufferInactiveTarget = 'BufferVisibleTarget',
|
|
|
|
|
|
|
|
|
|
BufferTabpages = {bg=FG, fg=gray_dark, style='bold'},
|
|
|
|
|
|
|
|
|
|
BufferVisible = 'TabLine',
|
|
|
|
|
BufferVisibleMod = {bg=gray_darker, fg=white, style='italic'},
|
|
|
|
|
BufferVisibleSign = 'BufferVisible',
|
2020-11-15 21:39:56 +00:00
|
|
|
|
BufferVisibleTarget = {bg=gray_darker, fg=white, style='bold'},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
--[[ Step 5: Terminal Colors
|
|
|
|
|
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
|
2020-07-02 17:06:31 +00:00
|
|
|
|
When you wish to load your colorscheme, simply add this folder with a plugin manager
|
|
|
|
|
and then use `colorscheme <your colorscheme name>`. For example, in my configuration,
|
|
|
|
|
I source highlite by using `colorscheme highlite`.
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
12. 'I Made My Own Colour Scheme and You Can Too!'.
|
|
|
|
|
* https://cmcenroe.me/2018/04/03/colour-scheme.html
|
|
|
|
|
|
2020-07-02 17:06:31 +00:00
|
|
|
|
A few things to note:
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
2020-07-02 17:06:31 +00:00
|
|
|
|
* The Windows console (`cmd`) is limited to the 16 so-called 'ANSI' colors but it used to
|
2020-06-25 20:45:31 +00:00
|
|
|
|
have a few of them interverted which makes numbers impractical. Use color names
|
|
|
|
|
instead of numbers: :help cterm-colors
|
2020-07-02 17:06:31 +00:00
|
|
|
|
* The Windows console 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.
|
|
|
|
|
* The Windows TERMINAL, however, is capable of more.
|
2020-06-25 20:45:31 +00:00
|
|
|
|
* All of the terminal emulators in use these days allow their users to
|
|
|
|
|
change the 16 so-called 'ANSI' colors. It is also possible on some platforms
|
|
|
|
|
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.
|
|
|
|
|
]]
|
|
|
|
|
|
2020-07-02 17:06:31 +00:00
|
|
|
|
-- Change 'highlite' to the name of your colorscheme as defined in step 1.
|
2020-06-25 20:45:31 +00:00
|
|
|
|
require('highlite')(
|
|
|
|
|
highlight_group_normal,
|
|
|
|
|
highlight_groups,
|
|
|
|
|
terminal_ansi_colors
|
|
|
|
|
)
|
|
|
|
|
|
2020-07-16 01:37:03 +00:00
|
|
|
|
-- Thanks to Romain Lafourcade (https://github.com/romainl) for the original template (romainl/vim-rnb).
|
|
|
|
|
-- vim: ft=lua
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
2020-07-16 01:37:03 +00:00
|
|
|
|
EOF
|