Add more highlight groups
This commit is contained in:
parent
87eacb946c
commit
ed1fe67fb5
|
@ -21,10 +21,10 @@ Usage is simple. This repository should be cloned with `git clone https://github
|
||||||
1. Rename `lua/highlite/` to `lua/<name of your colorscheme>/`.
|
1. Rename `lua/highlite/` to `lua/<name of your colorscheme>/`.
|
||||||
2. Follow the directions in [lua/`<name of your colorscheme>`/init.lua](lua/highlite/init.lua).
|
2. Follow the directions in [lua/`<name of your colorscheme>`/init.lua](lua/highlite/init.lua).
|
||||||
3. Rename `colors/highlite.vim` to `colors/<name of your colorscheme>.vim`.
|
3. Rename `colors/highlite.vim` to `colors/<name of your colorscheme>.vim`.
|
||||||
4. Follow the instructions in [`colors/highlite.vim`](colors/highlite.vim).
|
4. Follow the instructions in [colors/`<name of your colorscheme>`.vim](colors/highlite.vim).
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
The following colorschemes are built using `nvim-highlite`:
|
This repository in itself is an example of how to use `nvim-highlite`. Aside from this, the following colorschemes are built using `nvim-highlite`:
|
||||||
|
|
||||||
* (if you use this, open an issue and I'll add it here!)
|
* (if you use this, open an issue and I'll add it here!)
|
||||||
|
|
|
@ -99,4 +99,7 @@ return function(name, Normal, highlights, terminal_ansi_colors)
|
||||||
for index, color in ipairs(terminal_ansi_colors) do
|
for index, color in ipairs(terminal_ansi_colors) do
|
||||||
vim.g['terminal_color_' .. index] = color[HEX]
|
vim.g['terminal_color_' .. index] = color[HEX]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
vim.o.background = 'dark'
|
||||||
|
vim.g.indent_guides_auto_colors = 0
|
||||||
end
|
end
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
Make sure the name of your colorscheme is unique and attractive.
|
Make sure the name of your colorscheme is unique and attractive.
|
||||||
]]
|
]]
|
||||||
|
|
||||||
local name = "highlite"
|
local name = 'highlite'
|
||||||
|
|
||||||
--[[ Step 3: colors
|
--[[ Step 3: colors
|
||||||
Next you will define all of the colors that you will use for the color scheme.
|
Next you will define all of the colors that you will use for the color scheme.
|
||||||
|
@ -54,12 +54,12 @@ local name = "highlite"
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
<color name> = { -- Give each color a distinctive name.
|
<color name> = { -- Give each color a distinctive name.
|
||||||
<hex color code>, -- Hexadecimal color used in GVim/MacVim or "NONE".
|
<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".
|
<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",
|
<16-bit color code> -- color name used by less capable color terminals, can be 'darkred',
|
||||||
"red", "darkgreen", "green", "darkyellow", "yellow", "darkblue",
|
'red', 'darkgreen', 'green', 'darkyellow', 'yellow', 'darkblue',
|
||||||
"blue", "darkmagenta", "magenta", "black", "darkgrey", "grey",
|
'blue', 'darkmagenta', 'magenta', 'black', 'darkgrey', 'grey',
|
||||||
"white", or "NONE"
|
'white', or 'NONE'
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -67,51 +67,51 @@ local name = "highlite"
|
||||||
to work in GVim (Windows/Linux), MacVim (MacOS), and any properly set up terminal emulator.
|
to work in GVim (Windows/Linux), MacVim (MacOS), and any properly set up terminal emulator.
|
||||||
]]
|
]]
|
||||||
|
|
||||||
local black = {"#202020", 0, "black"}
|
local black = {'#202020', 0, 'black'}
|
||||||
local gray = {"#808080", 244, "gray" }
|
local gray = {'#808080', 244, 'gray' }
|
||||||
local gray_dark = {"#353535", 236, "darkgrey"}
|
local gray_dark = {'#353535', 236, 'darkgrey'}
|
||||||
local gray_darker = {"#505050", 244, "gray" }
|
local gray_darker = {'#505050', 244, 'gray' }
|
||||||
local gray_light = {"#c0c0c0", 251, "gray" }
|
local gray_light = {'#c0c0c0', 251, 'gray' }
|
||||||
local white = {"#ffffff", 15, "white"}
|
local white = {'#ffffff', 15, 'white'}
|
||||||
|
|
||||||
local brown_light = {"#fca070", 178, "darkyellow"}
|
local brown_light = {'#fca070', 178, 'darkyellow'}
|
||||||
local tan = {"#f4c069", 180, "darkyellow"}
|
local tan = {'#f4c069', 180, 'darkyellow'}
|
||||||
|
|
||||||
local red = {"#ee4a59", 196, "red"}
|
local red = {'#ee4a59', 196, 'red'}
|
||||||
local red_dark = {"#a80000", 124, "darkred"}
|
local red_dark = {'#a80000', 124, 'darkred'}
|
||||||
local red_light = {"#ff4090", 203, "red"}
|
local red_light = {'#ff4090', 203, 'red'}
|
||||||
|
|
||||||
local orange = {"#ff8900", 208, "darkyellow"}
|
local orange = {'#ff8900', 208, 'darkyellow'}
|
||||||
local orange_light = {"#f0af00", 214, "yellow"}
|
local orange_light = {'#f0af00', 214, 'yellow'}
|
||||||
|
|
||||||
local yellow = {"#f0df33", 220, "yellow"}
|
local yellow = {'#f0df33', 220, 'yellow'}
|
||||||
|
|
||||||
local green_dark = {"#50de60", 83, "darkgreen"}
|
local green_dark = {'#50de60', 83, 'darkgreen'}
|
||||||
local green = {"#77ff00", 72, "green"}
|
local green = {'#77ff00', 72, 'green'}
|
||||||
local green_light = {"#a0ff70", 72, "green"}
|
local green_light = {'#a0ff70', 72, 'green'}
|
||||||
|
|
||||||
local blue = {"#7090ff", 63, "darkblue"}
|
local blue = {'#7090ff', 63, 'darkblue'}
|
||||||
local cyan = {"#00efff", 87, "cyan"}
|
local cyan = {'#00efff', 87, 'cyan'}
|
||||||
local ice = {"#80b5ff", 63, "cyan"}
|
local ice = {'#80b5ff', 63, 'cyan'}
|
||||||
local teal = {"#6ac0c0", 38, "cyan"}
|
local teal = {'#6ac0c0', 38, 'cyan'}
|
||||||
local turqoise = {"#2bff99", 33, "blue"}
|
local turqoise = {'#2bff99', 33, 'blue'}
|
||||||
|
|
||||||
local magenta = {"#d5508f", 126, "magenta"}
|
local magenta = {'#d5508f', 126, 'magenta'}
|
||||||
local magenta_dark = {"#bb0099", 126, "darkmagenta"}
|
local magenta_dark = {'#bb0099', 126, 'darkmagenta'}
|
||||||
local pink = {"#ffa6ff", 162, "magenta"}
|
local pink = {'#ffa6ff', 162, 'magenta'}
|
||||||
local pink_light = {"#ffb7b7", 38, "white"}
|
local pink_light = {'#ffb7b7', 38, 'white'}
|
||||||
local purple = {"#cf55f0", 129, "magenta"}
|
local purple = {'#cf55f0', 129, 'magenta'}
|
||||||
local purple_light = {"#af60af", 63, "magenta"}
|
local purple_light = {'#af60af', 63, 'magenta'}
|
||||||
local purple_dark = {"#c700ff", 38, "darkmagenta"}
|
local purple_dark = {'#c700ff', 38, 'darkmagenta'}
|
||||||
|
|
||||||
--[[ Step 4: highlights
|
--[[ Step 4: highlights
|
||||||
You can define highlight groups like this:
|
You can define highlight groups like this:
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
<highlight group name> = {
|
<highlight group name> = {
|
||||||
bg=<color>, -- The color used for background color, or use "NONE", "fg" or "bg"
|
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"
|
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.
|
-- Style can be 'bold', 'italic', and more. See |attr-list| for more information.
|
||||||
style=<cterm>
|
style=<cterm>
|
||||||
-- style can also have a color, and/or multiple <cterm>s.
|
-- style can also have a color, and/or multiple <cterm>s.
|
||||||
style={<cterm> [, <cterm>] [color=<color>]})
|
style={<cterm> [, <cterm>] [color=<color>]})
|
||||||
|
@ -121,11 +121,11 @@ local purple_dark = {"#c700ff", 38, "darkmagenta"}
|
||||||
The sample above tells Vim to render normal text in dark gray against a white
|
The sample above tells Vim to render normal text in dark gray against a white
|
||||||
background, without any other styling.
|
background, without any other styling.
|
||||||
|
|
||||||
Or you can link an highlight group to another. Here, "Title" will inherit its style from
|
Or you can link an highlight group to another. Here, 'Title' will inherit its style from
|
||||||
"Normal":
|
'Normal':
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
Title = {link="Normal"}
|
Title = {link='Normal'}
|
||||||
```
|
```
|
||||||
|
|
||||||
In GUI Vim, there is an additional color for the undercurl used to
|
In GUI Vim, there is an additional color for the undercurl used to
|
||||||
|
@ -133,25 +133,25 @@ local purple_dark = {"#c700ff", 38, "darkmagenta"}
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
SpellBad = { -- ← name of the highlight group
|
SpellBad = { -- ← name of the highlight group
|
||||||
bg="NONE", -- background color
|
bg='NONE', -- background color
|
||||||
fg=red, -- foureground color
|
fg=red, -- foureground color
|
||||||
style={ -- the style
|
style={ -- the style
|
||||||
"undercurl", -- undercurl (squiggly line)
|
'undercurl', -- undercurl (squiggly line)
|
||||||
color=red -- the color of the undercurl
|
color=red -- the color of the undercurl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
If you weren't satisfied with undercurl, and also wanted another effect, you can
|
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:
|
add another one below 'undercurl' and it will be applied as well:
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
SpellBad = { -- ← name of the highlight group
|
SpellBad = { -- ← name of the highlight group
|
||||||
bg="NONE", -- background color
|
bg='NONE', -- background color
|
||||||
fg=red, -- foureground color
|
fg=red, -- foureground color
|
||||||
style={ -- the style
|
style={ -- the style
|
||||||
"undercurl", -- undercurl (squiggly line)
|
'undercurl', -- undercurl (squiggly line)
|
||||||
"standout"
|
'standout'
|
||||||
color=red -- the color of the undercurl
|
color=red -- the color of the undercurl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -166,145 +166,357 @@ local purple_dark = {"#c700ff", 38, "darkmagenta"}
|
||||||
are good reads, by the way.
|
are good reads, by the way.
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
--[[ DO NOT EDIT THESE. You can use them instead of string literals. ]]
|
||||||
|
local BG = 'bg'
|
||||||
|
local FG = 'fg'
|
||||||
|
local NONE = 'NONE'
|
||||||
|
|
||||||
-- This is the only highlight that must be defined separately.
|
-- This is the only highlight that must be defined separately.
|
||||||
local Normal = {bg=black, fg=gray_light, style="NONE"}
|
local Normal = {bg=black, fg=gray_light, style=NONE}
|
||||||
|
|
||||||
-- This is where the rest of your highlights should go.
|
-- This is where the rest of your highlights should go.
|
||||||
local highlights = {
|
local highlights = {
|
||||||
--[[ 1. Text Analysis ]]
|
--[[ 1. Text Analysis ]]
|
||||||
Comment = {bg="NONE", fg=gray, style="italic"},
|
Comment = {bg=NONE, fg=gray, style='italic'},
|
||||||
EndOfBuffer = {link="NonText" },
|
EndOfBuffer = {link='NonText' },
|
||||||
NonText = {bg="NONE", fg=gray_dark, style="NONE" },
|
NonText = {bg=NONE, fg=gray_dark, style=NONE },
|
||||||
Whitespace = {link="NonText" },
|
Whitespace = {link='NonText' },
|
||||||
|
|
||||||
--[[ 1.1. Literals]]
|
--[[ 1.1. Literals]]
|
||||||
Constant = {bg="NONE", fg=orange_light, style="NONE"},
|
Constant = {bg=NONE, fg=orange_light, style=NONE},
|
||||||
String = {bg="NONE", fg=green, style="NONE"},
|
String = {bg=NONE, fg=green, style=NONE},
|
||||||
Character = {bg="NONE", fg=red_light, style="NONE"},
|
Character = {bg=NONE, fg=red_light, style=NONE},
|
||||||
Number = {bg="NONE", fg=pink_light, style="NONE"},
|
Number = {bg=NONE, fg=pink_light, style=NONE},
|
||||||
Boolean = {bg="NONE", fg=yellow, style="NONE"},
|
Boolean = {bg=NONE, fg=yellow, style=NONE},
|
||||||
Float = {link="Number" },
|
Float = {link='Number' },
|
||||||
|
|
||||||
--[[ 1.2. Identifiers]]
|
--[[ 1.2. Identifiers]]
|
||||||
Identifier = {bg="NONE", fg="fg", style="NONE"},
|
Identifier = {bg=NONE, fg=FG, style=NONE},
|
||||||
Function = {bg="NONE", fg=purple, style="NONE"},
|
Function = {bg=NONE, fg=purple, style=NONE},
|
||||||
|
|
||||||
--[[ 1.3. Syntax]]
|
--[[ 1.3. Syntax]]
|
||||||
Statement = {bg="NONE", fg=ice, style="NONE" },
|
Statement = {bg=NONE, fg=ice, style=NONE },
|
||||||
Conditional = {bg="NONE", fg=ice, style="italic"},
|
Conditional = {bg=NONE, fg=ice, style='italic'},
|
||||||
Repeat = {link="Keyword" },
|
Repeat = {link='Keyword' },
|
||||||
Label = {bg="NONE", fg=pink, style="italic"},
|
Label = {bg=NONE, fg=pink, style='italic'},
|
||||||
Operator = {bg="NONE", fg=green_dark, style="NONE" },
|
Operator = {bg=NONE, fg=green_dark, style=NONE },
|
||||||
Keyword = {bg="NONE", fg=turqoise, style="bold" },
|
Keyword = {bg=NONE, fg=turqoise, style='bold' },
|
||||||
Exception = {bg="NONE", fg=red, style="bold" },
|
Exception = {bg=NONE, fg=red, style='bold' },
|
||||||
|
|
||||||
--[[ 1.4. Metatextual Information]]
|
--[[ 1.4. Metatextual Information]]
|
||||||
PreProc = {bg="NONE", fg=tan, style="NONE" },
|
PreProc = {bg=NONE, fg=tan, style=NONE },
|
||||||
Include = {bg="NONE", fg=green_light, style="nocombine"},
|
Include = {bg=NONE, fg=green_light, style='nocombine'},
|
||||||
Define = {bg="NONE", fg=blue, style="nocombine"},
|
Define = {bg=NONE, fg=blue, style='nocombine'},
|
||||||
Macro = {link='Define' },
|
Macro = {link='Define' },
|
||||||
PreCondit = {bg="NONE", fg=teal, style="nocombine"},
|
PreCondit = {bg=NONE, fg=teal, style='nocombine'},
|
||||||
|
|
||||||
--[[ 1.5. Semantics]]
|
--[[ 1.5. Semantics]]
|
||||||
Type = {bg="NONE", fg=cyan, style="NONE" },
|
Type = {bg=NONE, fg=cyan, style=NONE },
|
||||||
StorageClass = {bg="NONE", fg=orange_light, style="bold" },
|
StorageClass = {bg=NONE, fg=orange_light, style='bold' },
|
||||||
Structure = {bg="NONE", fg=blue, style="bold" },
|
Structure = {bg=NONE, fg=blue, style='bold' },
|
||||||
Typedef = {bg="NONE", fg=cyan, style="italic"},
|
Typedef = {bg=NONE, fg=cyan, style='italic'},
|
||||||
|
|
||||||
--[[ 1.6. Edge Cases]]
|
--[[ 1.6. Edge Cases]]
|
||||||
Special = {bg="NONE", fg=magenta, style="NONE"},
|
Special = {bg=NONE, fg=magenta, style=NONE },
|
||||||
SpecialChar = {link="Character" },
|
SpecialChar = {link='Character' },
|
||||||
SpecialKey = {link="Character" },
|
SpecialKey = {link='Character' },
|
||||||
Tag = {link="Underlined" },
|
Tag = {link='Underlined' },
|
||||||
Delimiter = {bg="NONE", fg=white, style="NONE"},
|
Delimiter = {bg=NONE, fg=white, style=NONE },
|
||||||
SpecialComment = {bg="NONE", fg=gray, style="bold"},
|
SpecialComment = {bg=NONE, fg=gray, style='bold'},
|
||||||
Debug = {link='WarningMsg' },
|
Debug = {link='WarningMsg' },
|
||||||
|
|
||||||
--[[ 1.7. Help Syntax]]
|
--[[ 1.7. Help Syntax]]
|
||||||
Underlined = {bg="NONE", fg=turqoise, style="underline" },
|
Underlined = {bg=NONE, fg=turqoise, style='underline' },
|
||||||
Ignore = {bg="NONE", fg=gray, style="NONE" },
|
Ignore = {bg=NONE, fg=gray, style=NONE },
|
||||||
Error = {bg=red_dark, fg=white, style="bold" },
|
Error = {bg=red_dark, fg=white, style='bold' },
|
||||||
Todo = {bg="NONE", fg=yellow, style={"bold", "underline"}},
|
Todo = {bg=NONE, fg=yellow, style={'bold', 'underline'}},
|
||||||
helpHyperTextJump = {link="Underlined" },
|
helpHyperTextJump = {link='Underlined' },
|
||||||
helpSpecial = {link="Function" },
|
helpSpecial = {link='Function' },
|
||||||
|
|
||||||
--[[ 2... Editor UI ]]
|
--[[ 2... Editor UI ]]
|
||||||
--[[ 2.1. Status Line]]
|
--[[ 2.1. Status Line]]
|
||||||
StatusLine = {bg=gray_darker, fg=green_light, style="NONE"},
|
StatusLine = {bg=gray_darker, fg=green_light, style=NONE},
|
||||||
StatusLineNC = {bg=gray_darker, fg=gray, style="NONE"},
|
StatusLineNC = {bg=gray_darker, fg=gray, style=NONE},
|
||||||
StatusLineTerm = {link="StatusLine" },
|
StatusLineTerm = {link='StatusLine' },
|
||||||
StatusLineTermNC = {link="StatusLineNC" },
|
StatusLineTermNC = {link='StatusLineNC' },
|
||||||
|
|
||||||
--[[ 2.2. Separators]]
|
--[[ 2.2. Separators]]
|
||||||
VertSplit = {bg="NONE", fg=gray_darker, style="NONE" },
|
VertSplit = {bg=NONE, fg=gray_darker, style=NONE },
|
||||||
TabLine = {bg=gray_darker, fg="fg", style="NONE" },
|
TabLine = {bg=gray_darker, fg=FG, style=NONE },
|
||||||
TabLineFill = {bg="NONE", fg="fg", style="NONE" },
|
TabLineFill = {bg=NONE, fg=FG, style=NONE },
|
||||||
TabLineSel = {bg=gray_darker, fg="fg", style="inverse"},
|
TabLineSel = {bg=gray_darker, fg=FG, style='inverse'},
|
||||||
Title = {bg="NONE", fg="NONE", style="bold" },
|
Title = {bg=NONE, fg=NONE, style='bold' },
|
||||||
|
|
||||||
--[[ 2.3. Conditional Line Highlighting]]
|
--[[ 2.3. Conditional Line Highlighting]]
|
||||||
--Conceal={}
|
--Conceal={}
|
||||||
CursorLine = {bg=gray_dark, fg="NONE", style="NONE" },
|
CursorLine = {bg=gray_dark, fg=NONE, style=NONE },
|
||||||
CursorLineNr = {bg=gray_dark, fg=pink, style="NONE" },
|
CursorLineNr = {bg=gray_dark, fg=pink, style=NONE },
|
||||||
debugBreakpoint = {link="ErrorMsg" },
|
debugBreakpoint = {link='ErrorMsg' },
|
||||||
debugPC = {link="ColorColumn" },
|
debugPC = {link='ColorColumn' },
|
||||||
LineNr = {bg="NONE", fg=gray, style="NONE" },
|
LineNr = {bg=NONE, fg=gray, style=NONE },
|
||||||
QuickFixLine = {bg=gray_darker, fg="NONE", style="NONE" },
|
QuickFixLine = {bg=gray_darker, fg=NONE, style=NONE },
|
||||||
Visual = {bg="NONE", fg="NONE", style="inverse"},
|
Visual = {bg=NONE, fg=NONE, style='inverse'},
|
||||||
VisualNOS = {bg=gray_darker, fg="NONE", style="NONE" },
|
VisualNOS = {bg=gray_darker, fg=NONE, style=NONE },
|
||||||
|
|
||||||
--[[ 2.4. Popup Menu]]
|
--[[ 2.4. Popup Menu]]
|
||||||
Pmenu = {bg=gray_dark, fg="fg", style="NONE"},
|
Pmenu = {bg=gray_dark, fg=FG, style=NONE},
|
||||||
PmenuSbar = {bg=black, fg="NONE", style="NONE"},
|
PmenuSbar = {bg=black, fg=NONE, style=NONE},
|
||||||
PmenuSel = {bg="NONE", fg="fg", style="NONE"},
|
PmenuSel = {bg=NONE, fg=FG, style=NONE},
|
||||||
PmenuThumb = {bg=white, fg="NONE", style="NONE"},
|
PmenuThumb = {bg=white, fg=NONE, style=NONE},
|
||||||
WildMenu = {bg="NONE", fg="NONE", style="NONE"},
|
WildMenu = {bg=NONE, fg=NONE, style=NONE},
|
||||||
|
|
||||||
--[[ 2.5. Folds]]
|
--[[ 2.5. Folds]]
|
||||||
FoldColumn = {bg=gray_darker, fg="NONE", style="bold" },
|
FoldColumn = {bg=gray_darker, fg=NONE, style='bold' },
|
||||||
Folded = {bg=purple_light, fg=black, style="italic"},
|
Folded = {bg=purple_light, fg=black, style='italic'},
|
||||||
|
|
||||||
--[[ 2.6. Diffs]]
|
--[[ 2.6. Diffs]]
|
||||||
DiffAdd = {bg="NONE", fg=green_dark, style="inverse"},
|
DiffAdd = {bg=NONE, fg=green_dark, style='inverse'},
|
||||||
DiffChange = {bg="NONE", fg=yellow, style="inverse"},
|
DiffChange = {bg=NONE, fg=yellow, style='inverse'},
|
||||||
DiffDelete = {bg="NONE", fg=red, style="inverse"},
|
DiffDelete = {bg=NONE, fg=red, style='inverse'},
|
||||||
DiffText = {bg="NONE", fg="NONE", style="inverse"},
|
DiffText = {bg=NONE, fg=NONE, style='inverse'},
|
||||||
|
|
||||||
--[[ 2.7. Searching]]
|
--[[ 2.7. Searching]]
|
||||||
IncSearch = {bg="NONE", fg="NONE", style="inverse" },
|
IncSearch = {bg=NONE, fg=NONE, style='inverse' },
|
||||||
Search = {bg="NONE", fg="NONE", style={"undercurl", color=white}},
|
Search = {bg=NONE, fg=NONE, style={'undercurl', color=white}},
|
||||||
MatchParen = {bg="NONE", fg=green, style="bold,underline" },
|
MatchParen = {bg=NONE, fg=green, style={'bold', 'underline' }},
|
||||||
|
|
||||||
--[[ 2.8. Spelling]]
|
--[[ 2.8. Spelling]]
|
||||||
SpellBad = {bg="NONE", fg="NONE", style={"undercurl", color=red }},
|
SpellBad = {bg=NONE, fg=NONE, style={'undercurl', color=red }},
|
||||||
SpellCap = {bg="NONE", fg="NONE", style={"undercurl", color=yellow}},
|
SpellCap = {bg=NONE, fg=NONE, style={'undercurl', color=yellow}},
|
||||||
SpellLocal = {bg="NONE", fg="NONE", style={"undercurl", color=green }},
|
SpellLocal = {bg=NONE, fg=NONE, style={'undercurl', color=green }},
|
||||||
SpellRare = {bg="NONE", fg="NONE", style={"undercurl", color=orange}},
|
SpellRare = {bg=NONE, fg=NONE, style={'undercurl', color=orange}},
|
||||||
|
|
||||||
--[[ 2.9. Conditional Column Highlighting]]
|
--[[ 2.9. Conditional Column Highlighting]]
|
||||||
ColorColumn = {bg="NONE", fg="NONE", style="inverse"},
|
ColorColumn = {bg=NONE, fg=NONE, style='inverse'},
|
||||||
SignColumn = {bg="NONE", fg="NONE", style="NONE" },
|
SignColumn = {bg=NONE, fg=NONE, style=NONE },
|
||||||
|
|
||||||
--[[ 2.10. Messages]]
|
--[[ 2.10. Messages]]
|
||||||
ErrorMsg = {bg="NONE", fg=red_light, style="bold"},
|
ErrorMsg = {bg=NONE, fg=red_light, style='bold' },
|
||||||
ModeMsg = {bg="NONE", fg=yellow, style="NONE"},
|
ModeMsg = {bg=NONE, fg=yellow, style=NONE },
|
||||||
WarningMsg = {bg="NONE", fg=orange, style="bold"},
|
WarningMsg = {bg=NONE, fg=orange, style='bold' },
|
||||||
Question = {bg="NONE", fg=orange_light, style="underline"},
|
Question = {bg=NONE, fg=orange_light, style='underline'},
|
||||||
|
|
||||||
--[[ 2.11. Cursor ]]
|
--[[ 2.11. Cursor ]]
|
||||||
--Cursor = {},
|
Cursor = {bg=NONE, fg=NONE, style='inverse'},
|
||||||
--CursorIM = {link="Cursor"},
|
CursorIM = {link='Cursor' },
|
||||||
CursorColumn = {bg=gray_dark, fg="NONE", style="NONE"},
|
CursorColumn = {bg=gray_dark, fg=NONE, style=NONE },
|
||||||
|
|
||||||
-- 2.12 Misc.
|
-- 2.12 Misc.
|
||||||
Directory = {bg="NONE", fg=ice, style="bold"},
|
Directory = {bg=NONE, fg=ice, style='bold'},
|
||||||
Terminal = {link="Normal" },
|
Terminal = {link='Normal' },
|
||||||
|
|
||||||
--[[ 3. Plugin Highlight Groups ]]
|
--[[ 3. Programming Languages
|
||||||
-- By default, this section is empty, but feel free to add your own information here.
|
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.
|
||||||
|
]]
|
||||||
|
--[[ 3.0. C ]]
|
||||||
|
cConstant = {link='Constant'},
|
||||||
|
cCustomClass = {link='Type' },
|
||||||
|
|
||||||
|
--[[ 3.0. C++ ]]
|
||||||
|
cppSTLexception = {link='Exception'},
|
||||||
|
cppSTLnamespace = {link='String' },
|
||||||
|
|
||||||
|
--[[ 3.0. CSS ]]
|
||||||
|
cssProp = {link='Keyword'},
|
||||||
|
cssTagName = {link='Type' },
|
||||||
|
|
||||||
|
--[[ 3.0. dot ]]
|
||||||
|
dotKeyChar = {link='Character'},
|
||||||
|
dotType = {link='Type' },
|
||||||
|
|
||||||
|
--[[ 3.0. Go ]]
|
||||||
|
goField = {link='Identifier' } ,
|
||||||
|
goFloat = {link='Float' } ,
|
||||||
|
goFormatSpecifier = {link='Character' } ,
|
||||||
|
goFunction = {link='Function' } ,
|
||||||
|
goFunctionCall = {link='goFunction' } ,
|
||||||
|
goMethodCall = {link='goFunctionCall'} ,
|
||||||
|
goPredefinedIdentifiers = {link='Operator' } ,
|
||||||
|
goReceiverType = {link='goTypeName' } ,
|
||||||
|
goType = {link='Structure' } ,
|
||||||
|
goTypeConstructor = {link='goFunction' } ,
|
||||||
|
goTypeName = {link='Type' } ,
|
||||||
|
|
||||||
|
--[[ 3.0. HTML ]]
|
||||||
|
htmlBold = {bg=NONE, fg=NONE, style='bold' },
|
||||||
|
htmlItalic = {bg=NONE, fg=NONE, style='italic'},
|
||||||
|
htmlSpecialTagName = {link='Tag' },
|
||||||
|
|
||||||
|
--[[ 3.0. Java ]]
|
||||||
|
javaClassDecl = {link='Structure'},
|
||||||
|
|
||||||
|
--[[ 3.0. JavaScript ]]
|
||||||
|
jsFuncBlock = {link='Function' },
|
||||||
|
jsObjectKey = {link='Type' },
|
||||||
|
jsReturn = {link='Keyword' },
|
||||||
|
jsVariableDef = {link='Identifier'},
|
||||||
|
|
||||||
|
--[[ 3.0. JSON ]]
|
||||||
|
jsonStringSQError = {link='Exception'},
|
||||||
|
|
||||||
|
--[[ 3.0. Make ]]
|
||||||
|
makeCommands = {link='Statment'},
|
||||||
|
makeSpecTarget = {link='Type' },
|
||||||
|
|
||||||
|
--[[ 3.0. Markdown ]]
|
||||||
|
markdownH1 = {bg=NONE, fg=FG, style='bold' },
|
||||||
|
markdownH2 = {bg=NONE, fg=FG, style='bold' },
|
||||||
|
markdownH3 = {bg=NONE, fg=FG, style='bold' },
|
||||||
|
markdownH4 = {bg=NONE, fg=FG, style='bold' },
|
||||||
|
markdownH5 = {bg=NONE, fg=FG, style='bold' },
|
||||||
|
markdownH6 = {bg=NONE, fg=FG, style='bold' },
|
||||||
|
mkdCode = {link='Comment' },
|
||||||
|
mkdItalic = {bg=NONE, fg=green, style='italic'},
|
||||||
|
|
||||||
|
--[[ 3.0. Python ]]
|
||||||
|
pythonBrackets = {link='Delimiter' },
|
||||||
|
pythonBuiltinFunc = {link='' },
|
||||||
|
pythonBuiltinObj = {link='Type' },
|
||||||
|
pythonBuiltinType = {link='Type' },
|
||||||
|
pythonClass = {link='Structure' },
|
||||||
|
pythonClassParameters = {link='pythonParameters'},
|
||||||
|
pythonDecorator = {link='PreProc' },
|
||||||
|
pythonDottedName = {link='' },
|
||||||
|
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' },
|
||||||
|
|
||||||
|
--[[ 3.0. Ruby ]]
|
||||||
|
rubyClass = {link='Structure'},
|
||||||
|
rubyDefine = {link='Define' },
|
||||||
|
rubyInterpolationDelimiter = {link='Delimiter'},
|
||||||
|
|
||||||
|
--[[ 3.0. Rust ]]
|
||||||
|
rustKeyword = {link='Keyword' },
|
||||||
|
rustModPath = {link='Include' },
|
||||||
|
rustScopeDecl = {link='Delimiter' },
|
||||||
|
rustTrait = {link='StorageClass'},
|
||||||
|
|
||||||
|
--[[ 3.0. Scala ]]
|
||||||
|
scalaKeyword = {link='Keyword' },
|
||||||
|
scalaNameDefinition = {link='Identifier'},
|
||||||
|
|
||||||
|
--[[ 3.0. shell ]]
|
||||||
|
shFunctionKey = {link='Function' },
|
||||||
|
shLoop = {link='Repeat' },
|
||||||
|
shSet = {link='Statement'},
|
||||||
|
shTestOpr = {link='Debug' },
|
||||||
|
|
||||||
|
--[[ 3.0. Solidity ]]
|
||||||
|
solBuiltinType = {link='Type' },
|
||||||
|
solContract = {link='Typedef' },
|
||||||
|
solContractName = {link='Function'},
|
||||||
|
|
||||||
|
--[[ 3.0. TOML ]]
|
||||||
|
tomlComment = {link='Comment' },
|
||||||
|
tomlKey = {link='Label' },
|
||||||
|
tomlTable = {link='StorageClass'},
|
||||||
|
|
||||||
|
--[[ 3.0. VimScript ]]
|
||||||
|
vimCommand = {link='Keyword' },
|
||||||
|
vimFuncKey = {link='Function'},
|
||||||
|
vimGroup = {link='Type' },
|
||||||
|
vimHiGroup = {link='Special' },
|
||||||
|
vimLet = {link='Operator'},
|
||||||
|
vimMap = {link='Label' },
|
||||||
|
|
||||||
|
--[[ 3.0. XML ]]
|
||||||
|
xmlEndTag = {link='xmlTag' },
|
||||||
|
xmlTag = {link='Delimiter'},
|
||||||
|
xmlTagName = {link='Keyword' },
|
||||||
|
|
||||||
|
--[[ 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.0. ALE ]]
|
||||||
|
ALEErrorSign = {link = 'Error' },
|
||||||
|
ALEWarningSign = {link = 'Warning'},
|
||||||
|
|
||||||
|
--[[ 4.0. vim-easymotion ]]
|
||||||
|
EasyMotionTarget = {bg=NONE, --TODO },
|
||||||
|
EasyMotionTarget2First = {'' , 162 , '' , 'bold' , 'bold' } ,
|
||||||
|
EasyMotionTarget2Second = {'' , 69 , '' , 'bold' , 'bold' } ,
|
||||||
|
|
||||||
|
--[[ 4.0. vim-markdown ]]
|
||||||
|
htmlH1 = {'' , 68 , '' , 'bold' , 'bold'},
|
||||||
|
htmlH2 = {'' , 36 , '' , 'bold' , 'bold'},
|
||||||
|
htmlH3 = {'' , 114 , '' , 'bold' , 'bold'},
|
||||||
|
htmlH4 = {'' , 178 , '' , 'bold' , 'bold'},
|
||||||
|
htmlH5 = {'' , 68 , '' , NONE , NONE},
|
||||||
|
htmlH6 = {'' , 36 , '' , NONE , NONE},
|
||||||
|
|
||||||
|
--[[ 4.0. vim-indent-guides ]]
|
||||||
|
IndentGuidesOdd = {'' , '' , 237 , NONE , NONE},
|
||||||
|
IndentGuidesEven = {'' , '' , 239 , NONE , NONE},
|
||||||
|
|
||||||
|
--[[ 4.0. vim-gitgutter ]]
|
||||||
|
GitGutterAdd = {'' , 36 , '' , NONE , NONE},
|
||||||
|
GitGutterChange = {'' , 178 , '' , NONE , NONE},
|
||||||
|
GitGutterDelete = {'' , 160 , '' , NONE , NONE},
|
||||||
|
GitGutterChangeDelete = {'' , 140 , '' , NONE , NONE},
|
||||||
|
|
||||||
|
--[[ 4.0. vim-signify ]]
|
||||||
|
SignifySignAdd = {'' , 36 , '' , NONE , NONE},
|
||||||
|
SignifySignChange = {'' , 178 , '' , NONE , NONE},
|
||||||
|
SignifySignDelete = {'' , 160 , '' , NONE , NONE},
|
||||||
|
SignifySignChangeDelete = {'', 140 , '' , NONE , NONE},
|
||||||
|
|
||||||
|
--[[ 4.0. vim-startify ]]
|
||||||
|
StartifyFile = {link='Normal'},
|
||||||
|
StartifyHeader = {'' , 177 , '' , NONE , NONE},
|
||||||
|
startifySection = {'' , 68 , '' , 'bold' , 'bold'},
|
||||||
|
|
||||||
|
--[[ 4.0. YouCompleteMe ]]
|
||||||
|
YcmErrorSection = {'' , 249 , 5 , NONE , NONE},
|
||||||
|
YcmWarningSection = {'' , 249 , 60 , NONE , NONE},
|
||||||
|
|
||||||
|
--[[ 4.0. vim-leader-guide ]]
|
||||||
|
LeaderGuideDesc = {link='Normal'},
|
||||||
|
LeaderGuideKeys = {'' , 169 , '' , 'bold' , 'bold'},
|
||||||
|
LeaderGuideBrackets = {'' , 36 , '' , NONE , NONE},
|
||||||
|
|
||||||
|
--[[ 4.0. NERDTree ]]
|
||||||
|
NERDTreeCWD = {'' , 169 , '' , 'bold' , 'bold'},
|
||||||
|
NERDTreeUp = {'' , 68 , '' , 'bold' , 'bold'},
|
||||||
|
NERDTreeDir = {'' , 68 , '' , 'bold' , 'bold'},
|
||||||
|
NERDTreeDirSlash = {'' , 68 , '' , 'bold' , 'bold'},
|
||||||
|
NERDTreeOpenable = {'' , 68 , '' , 'bold' , 'bold'},
|
||||||
|
NERDTreeClosable = {'' , 68 , '' , 'bold' , 'bold'},
|
||||||
|
NERDTreeExecFile = {'' , 167 , '' , 'bold' , 'bold'},
|
||||||
|
NERDTreeLinkTarget = {link='Tag'},
|
||||||
|
|
||||||
|
--[[ 4.0. Tagbar ]]
|
||||||
|
TagbarKind = {'' , 169 , '' , 'bold' , 'bold'},
|
||||||
|
TagbarScope = {'' , 169 , '' , 'bold' , 'bold'},
|
||||||
|
TagbarHighlight = {'' , 16 , 36 , 'bold' , 'bold'},
|
||||||
|
TagbarNestedKind = {'' , 68 , '' , 'bold' , 'bold'},
|
||||||
|
TagbarVisibilityPublic = {'' , 34 , '' , NONE , NONE},
|
||||||
|
|
||||||
|
--[[ 4.0. vim-signature ]]
|
||||||
|
SignatureMarkText = {'', 178, '', 'bold', 'bold'},
|
||||||
|
|
||||||
|
--[[ 4.0. vim_current_word ]]
|
||||||
|
CurrentWord = {'' , '' , bg1 , 'underline' , 'underline'},
|
||||||
|
CurrentWordTwins = {'' , '' , bg1 , NONE , NONE},
|
||||||
|
|
||||||
|
--[[ 4.0. quick-scope ]]
|
||||||
|
QuickScopePrimary = {'' , 155 , '' , 'underline' , 'underline'},
|
||||||
|
QuickScopeSecondary = {'' , 81 , '' , 'underline' , 'underline'},
|
||||||
}
|
}
|
||||||
|
|
||||||
--[[
|
--[[ Step 5: Terminal Colors
|
||||||
Define the color palette used by :terminal when in GUI Vim
|
Define the color palette used by :terminal when in GUI Vim
|
||||||
or in TUI Vim when 'termguicolors' is enabled. If this list
|
or in TUI Vim when 'termguicolors' is enabled. If this list
|
||||||
is empty or if it doesn't contain exactly 16 items, the corresponding
|
is empty or if it doesn't contain exactly 16 items, the corresponding
|
||||||
|
@ -390,12 +602,12 @@ local terminal_ansi_colors = {
|
||||||
* http://paletton.com/
|
* http://paletton.com/
|
||||||
11. A very smart palette generator.
|
11. A very smart palette generator.
|
||||||
* http://vrl.cs.brown.edu/color
|
* http://vrl.cs.brown.edu/color
|
||||||
12. "I Made My Own Colour Scheme and You Can Too!".
|
12. 'I Made My Own Colour Scheme and You Can Too!'.
|
||||||
* https://cmcenroe.me/2018/04/03/colour-scheme.html
|
* https://cmcenroe.me/2018/04/03/colour-scheme.html
|
||||||
|
|
||||||
A few general advices:
|
A few general advices:
|
||||||
|
|
||||||
* The Windows console is limited to the 16 so-called "ANSI" colors but it used to
|
* The Windows console is limited to the 16 so-called 'ANSI' colors but it used to
|
||||||
have a few of them interverted which makes numbers impractical. Use color names
|
have a few of them interverted which makes numbers impractical. Use color names
|
||||||
instead of numbers: :help cterm-colors
|
instead of numbers: :help cterm-colors
|
||||||
* The Windows console (yeah…) doesn't do italics, underlines or bolded text;
|
* The Windows console (yeah…) doesn't do italics, underlines or bolded text;
|
||||||
|
@ -405,7 +617,7 @@ local terminal_ansi_colors = {
|
||||||
* Actually, terminal emulators rarely do italics.
|
* Actually, terminal emulators rarely do italics.
|
||||||
* The Windows Terminal, however, is capable of more.
|
* The Windows Terminal, however, is capable of more.
|
||||||
* All of the terminal emulators in use these days allow their users to
|
* 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
|
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
|
to change some or all of the 256 colors in the xterm palette. Don't take
|
||||||
anything for granted.
|
anything for granted.
|
||||||
* When used against a light background, strong colors work better than muted
|
* When used against a light background, strong colors work better than muted
|
||||||
|
|
Loading…
Reference in New Issue