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)
|
2021-09-06 11:58:30 +00:00
|
|
|
|
* Repository: https://github.com/nvim-paper-tonic
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
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:
|
2021-09-06 11:58:30 +00:00
|
|
|
|
* `colors/paper-tonic.vim`
|
|
|
|
|
* `lua/paper-tonic.lua`
|
2020-07-02 17:06:31 +00:00
|
|
|
|
|
2021-09-06 11:58:30 +00:00
|
|
|
|
Where 'paper-tonic' 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|.
|
2021-09-06 11:58:30 +00:00
|
|
|
|
vim.g.colors_name = 'paper-tonic'
|
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.
|
|
|
|
|
]]
|
|
|
|
|
|
2021-09-06 14:33:01 +00:00
|
|
|
|
local c_bg_darkest = {'#505050', 244, 'gray'}
|
|
|
|
|
local c_bg = {'#ffffff', 255, 'white'}
|
|
|
|
|
|
|
|
|
|
local c_bg_ui = {'#efefef', 0, 'darkgray'}
|
|
|
|
|
|
2021-09-07 11:18:46 +00:00
|
|
|
|
local c_bg_error = {'#ffd7d7', 196, 'white'}
|
|
|
|
|
local c_bg_error_weak = {'#ffefef', 196, 'white'}
|
|
|
|
|
|
2021-09-07 11:24:46 +00:00
|
|
|
|
local c_success = {'#89af89', 196, 'white'}
|
|
|
|
|
local c_modified = {'#8989af', 196, 'white'}
|
|
|
|
|
local c_fail = {'#af8989', 196, 'white'}
|
2021-09-07 11:18:46 +00:00
|
|
|
|
|
2021-09-07 11:24:46 +00:00
|
|
|
|
local c_bg_success = {'#e0ece0', 196, 'white'}
|
|
|
|
|
local c_bg_modified = {'#e0e0ec', 196, 'white'}
|
|
|
|
|
local c_bg_fail = {'#ece0e0', 196, 'white'}
|
2021-09-06 14:33:01 +00:00
|
|
|
|
|
|
|
|
|
local c_bg_hl_strong = {"#dddddd", 17, "white"}
|
|
|
|
|
local c_bg_hl = {"#eeeeee", 250, "white"}
|
|
|
|
|
local c_bg_hl_weak = {"#f7f2f2", 250, "white"}
|
|
|
|
|
|
|
|
|
|
local c_bg_hl_special_strong = {"#a3e0ff", 17, "cyan"}
|
|
|
|
|
local c_bg_hl_special = {"#beced5", 250, "cyan"}
|
|
|
|
|
local c_bg_hl_special_weak = {"#dce5ed", 250, "cyan"}
|
|
|
|
|
|
2021-09-07 11:18:46 +00:00
|
|
|
|
local c_fg_strongest = {'#444444', 236, 'darkgrey'}
|
|
|
|
|
local c_fg_strong = {'#666666', 236, 'darkgrey'}
|
2021-09-06 14:33:01 +00:00
|
|
|
|
local c_fg = {'#8c8c8c', 244, 'gray'}
|
|
|
|
|
local c_fg_weak = {'#9d9d9d', 251, 'gray'}
|
|
|
|
|
local c_fg_weakest = {'#bbbbbb', 251, 'gray'}
|
|
|
|
|
|
|
|
|
|
local c_fg_exception = {'#7c4444', 251, 'gray'}
|
|
|
|
|
|
|
|
|
|
local c_alert_strong = {'#d70000', 124, 'darkred'}
|
|
|
|
|
local c_alert = {'#d75f00', 196, 'red'}
|
|
|
|
|
local c_alert_weak = {'#d7a100', 203, 'red'}
|
|
|
|
|
|
2021-09-07 11:18:46 +00:00
|
|
|
|
local c_question = {'#000000', 0, 'black'}
|
|
|
|
|
|
|
|
|
|
local c_primary_strongest = { "#7f4b4b", 236, "black" }
|
2021-09-06 14:33:01 +00:00
|
|
|
|
local c_primary_strong = { "#5a4444", 236, "black" }
|
|
|
|
|
local c_primary = { "#6b5555", 244, "gray" }
|
|
|
|
|
local c_primary_weak = { "#7c6666", 248, "darkgray" }
|
|
|
|
|
|
|
|
|
|
local c_2_weak = {"#5e955e", 28, "darkgreen"}
|
|
|
|
|
local c_2 = {"#008700", 22, "darkgreen"}
|
|
|
|
|
local c_2_strong = {"#005a00", 22, "darkgreen"}
|
|
|
|
|
|
|
|
|
|
local c_3_weak = {"#2d78b7", 20, "blue"}
|
|
|
|
|
local c_3 = {"#005faf", 19, "blue"}
|
|
|
|
|
local c_3_strong = {"#004f92", 17, "darkblue"}
|
|
|
|
|
|
|
|
|
|
local c_4_weak = {"#78b7d5", 20, "blue"}
|
|
|
|
|
local c_4 = {"#56acd7", 19, "blue"}
|
|
|
|
|
local c_4_strong = {"#1596d7", 17, "darkblue"}
|
|
|
|
|
|
|
|
|
|
local c_5_weak = {"#e846ac", 164, "magenta"}
|
|
|
|
|
local c_5 = {"#d70087", 164, "magenta"}
|
|
|
|
|
local c_5_strong = {"#ad006d", 164, "magenta"}
|
|
|
|
|
|
2020-06-25 20:45:31 +00:00
|
|
|
|
--[[ 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-11-19 21:42:47 +00:00
|
|
|
|
____________________________________________________________________________
|
|
|
|
|
|
|
|
|
|
If you want to inherit a specific attribute of another highlight group, you
|
|
|
|
|
can do the following:
|
|
|
|
|
|
|
|
|
|
```lua
|
|
|
|
|
SpellBad = function(self)
|
|
|
|
|
local inherited_style = self.SpellRare.style
|
|
|
|
|
inherited_style.color = red
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
bg=NONE,
|
|
|
|
|
fg=NONE,
|
|
|
|
|
style=inherited_style
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
```
|
|
|
|
|
|
2021-09-06 11:58:30 +00:00
|
|
|
|
The function will be executed by |paper-tonic| and transformed into the
|
2020-11-19 21:42:47 +00:00
|
|
|
|
expected result.
|
|
|
|
|
____________________________________________________________________________
|
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
|
|
|
|
]]
|
|
|
|
|
|
2020-11-19 21:42:47 +00:00
|
|
|
|
--[[ DO NOT EDIT `BG` NOR `FG`. ]]
|
|
|
|
|
local BG = 'bg'
|
|
|
|
|
local FG = 'fg'
|
2020-12-17 18:44:25 +00:00
|
|
|
|
local 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.
|
2021-09-06 14:33:01 +00:00
|
|
|
|
local highlight_group_normal = {fg=c_fg, bg=c_bg}
|
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 ]]
|
2021-09-06 14:33:01 +00:00
|
|
|
|
Comment = {fg=c_fg_weakest, style='italic'},
|
|
|
|
|
NonText = {fg=c_fg_weak},
|
|
|
|
|
EndOfBuffer = 'Comment',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
Whitespace = 'NonText',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.1.1. Literals]]
|
2021-09-06 14:33:01 +00:00
|
|
|
|
Constant = {fg=c_fg_strong, style='italic'},
|
|
|
|
|
String = {fg=fg_strong, style='italic'},
|
|
|
|
|
Character = 'String',
|
|
|
|
|
Number = 'String',
|
|
|
|
|
Boolean = 'String',
|
2020-12-17 18:58:56 +00:00
|
|
|
|
Float = 'Number',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.1.2. Identifiers]]
|
2021-09-06 14:33:01 +00:00
|
|
|
|
Identifier = {fg=c_primary, style='bold'},
|
|
|
|
|
Function = {fg=c_primary},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.1.3. Syntax]]
|
2021-09-06 14:33:01 +00:00
|
|
|
|
Statement = {fg=fg},
|
|
|
|
|
Conditional = {fg=fg, style='bold'},
|
|
|
|
|
Repeat = 'Conditional',
|
|
|
|
|
Label = {fg=c_fg_strongest, style='bold'},
|
|
|
|
|
Operator = {fg=fg_weak},
|
|
|
|
|
Keyword = {fg=fg_strong, style='bold'},
|
|
|
|
|
Exception = {fg=c_fg_exception, style='bold'},
|
|
|
|
|
Noise = {fg=c_fg_weakest},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.1.4. Metatextual Information]]
|
2021-09-06 14:33:01 +00:00
|
|
|
|
PreProc = {fg=c_fg_weak},
|
|
|
|
|
Include = {fg=c_fg_weak, style='bold'},
|
|
|
|
|
Define = 'Include',
|
|
|
|
|
Macro = {fg=c_fg, style='bold'},
|
|
|
|
|
PreCondit = 'Macro',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.1.5. Semantics]]
|
2021-09-06 14:33:01 +00:00
|
|
|
|
Type = {fg=c_fg_weak, style='bold'},
|
|
|
|
|
StorageClass = {fg=c_fg_weak},
|
|
|
|
|
Structure = 'StorageClass',
|
|
|
|
|
Typedef = 'StorageClass',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.1.6. Edge Cases]]
|
2021-09-07 11:18:46 +00:00
|
|
|
|
Special = {fg=c_primary_strongest, style='bold'},
|
|
|
|
|
SpecialChar = {fg=c_primary_strongest},
|
2021-09-06 14:33:01 +00:00
|
|
|
|
SpecialKey = 'SpecialCharacter',
|
|
|
|
|
Tag = {fg=c_primary_strong, style='bold'},
|
|
|
|
|
Delimiter = 'Noise',
|
|
|
|
|
SpecialComment = {fg=c_fg_exception, style='bold'},
|
2020-12-17 18:58:56 +00:00
|
|
|
|
Debug = 'WarningMsg',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.1.7. Help Syntax]]
|
2021-09-06 14:33:01 +00:00
|
|
|
|
Underlined = {style='underline'},
|
|
|
|
|
Ignore = {fg=c_fg_weak},
|
|
|
|
|
Error = {fg=c_alert_strong, style='bold'},
|
|
|
|
|
Todo = {fg=c_alert_strong},
|
2021-09-07 11:18:46 +00:00
|
|
|
|
Hint = {fg=c_alert_weak, style='italic'},
|
|
|
|
|
Info = {fg=c_alert_weak, style='italic'},
|
2021-09-06 14:33:01 +00:00
|
|
|
|
Warning = {fg=c_alert},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2... Editor UI ]]
|
|
|
|
|
--[[ 4.2.1. Status Line]]
|
2021-09-06 14:33:01 +00:00
|
|
|
|
StatusLine = {fg=c_fg, bg=c_bg_ui, style='italic'},
|
|
|
|
|
StatusLineNC = {fg=c_fg_weakest, bg=c_bg_ui, style='italic'},
|
2020-12-17 18:58:56 +00:00
|
|
|
|
StatusLineTerm = 'StatusLine',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
StatusLineTermNC = 'StatusLineNC',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.2. Separators]]
|
2021-09-06 14:33:01 +00:00
|
|
|
|
VertSplit = {fg=c_bg_hl_strong},
|
|
|
|
|
TabLine = 'StatusLineNC',
|
|
|
|
|
TabLineFill = {fg=c_bg_ui, bg=c_bg_ui},
|
|
|
|
|
TabLineSel = 'StatusLine',
|
2020-12-17 18:58:56 +00:00
|
|
|
|
Title = {style='bold'},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.3. Conditional Line Highlighting]]
|
2021-09-06 14:33:01 +00:00
|
|
|
|
Conceal = 'Noise',
|
|
|
|
|
CursorLine = {bg=c_bg_hl},
|
|
|
|
|
CursorLineNr = {fg=c_fg_weak, style='bold'},
|
2020-07-16 01:37:03 +00:00
|
|
|
|
debugBreakpoint = 'ErrorMsg',
|
2020-12-17 18:58:56 +00:00
|
|
|
|
debugPC = 'ColorColumn',
|
2021-09-06 14:33:01 +00:00
|
|
|
|
LineNr = {fg=c_fg_weak},
|
|
|
|
|
QuickFixLine = {bg=c_bg_hl_special_weak, style='bold'},
|
|
|
|
|
Visual = {bg=c_bg_hl_special},
|
|
|
|
|
VisualNOS = {bg=c_bg_hl_special, fg=c_fg_strong, style='bold'},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.4. Popup Menu]]
|
2021-09-06 14:33:01 +00:00
|
|
|
|
Pmenu = {fg=c_fg, bg=c_bg_ui},
|
|
|
|
|
PmenuSbar = 'Pmenu',
|
|
|
|
|
PmenuSel = {fg=c_fg_strong, bg=c_bg_ui, style='bold'},
|
|
|
|
|
PmenuThumb = 'Pmenu',
|
|
|
|
|
WildMenu = {fg=c_fg_strong, bg=c_bg_ui, style='bold'},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.5. Folds]]
|
2021-09-06 14:33:01 +00:00
|
|
|
|
FoldColumn = {fg=c_fg_weak},
|
|
|
|
|
Folded = {fg=c_fg_strong, style='bold'},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.6. Diffs]]
|
2021-09-07 11:24:46 +00:00
|
|
|
|
DiffAdd = {bg=c_bg_success},
|
|
|
|
|
DiffChange = {bg=c_bg_modified},
|
|
|
|
|
DiffDelete = {bg=c_bg_fail},
|
|
|
|
|
DiffText = {fg=c_fg_strongest, bg=c_bg_success},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.7. Searching]]
|
2020-09-05 15:56:08 +00:00
|
|
|
|
IncSearch = {style='inverse'},
|
2021-09-07 11:18:46 +00:00
|
|
|
|
MatchParen = {style={'bold', 'underline', color=c_fg_strongest}},
|
2021-09-06 14:33:01 +00:00
|
|
|
|
Search = {style={'underline', color=c_fg_strongest}},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.8. Spelling]]
|
2021-09-07 11:18:46 +00:00
|
|
|
|
SpellBad = {bg=c_bg_error_weak, fg=c_alert_strong,},
|
|
|
|
|
SpellCap = {bg=c_bg_error_weak, fg=c_alert},
|
|
|
|
|
SpellLocal = {bg=c_bg_error_weak, fg=c_alert_weak},
|
|
|
|
|
SpellRare = {bg=c_bg_error_weak, fg=c_alert_weak},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.9. Conditional Column Highlighting]]
|
2021-09-07 11:18:46 +00:00
|
|
|
|
ColorColumn = {bg=c_bg_hl_weak},
|
2020-12-17 18:44:25 +00:00
|
|
|
|
SignColumn = NONE,
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.10. Messages]]
|
2021-09-06 14:33:01 +00:00
|
|
|
|
ErrorMsg = {fg=c_alert, style='bold'},
|
2021-09-07 11:18:46 +00:00
|
|
|
|
HintMsg = {fg=c_alert_weak, style='italic'},
|
|
|
|
|
InfoMsg = {fg=c_alert_weak, style='italic'},
|
|
|
|
|
ModeMsg = {fg=c_question},
|
|
|
|
|
WarningMsg = {fg=c_alert, style='bold'},
|
|
|
|
|
Question = {fg=c_question, style='bold'},
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.2.11. LSP ]]
|
2020-11-13 08:23:48 +00:00
|
|
|
|
LspDiagnosticsDefaultError = 'Error',
|
|
|
|
|
LspDiagnosticsFloatingError = 'ErrorMsg',
|
2020-11-19 21:42:47 +00:00
|
|
|
|
LspDiagnosticsSignError = 'LspDiagnosticsFloatingError',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
2020-11-13 08:23:48 +00:00
|
|
|
|
LspDiagnosticsDefaultWarning = 'Warning',
|
|
|
|
|
LspDiagnosticsFloatingWarning = 'WarningMsg',
|
2020-11-19 21:42:47 +00:00
|
|
|
|
LspDiagnosticsSignWarning = 'LspDiagnosticsFloatingWarning',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
2020-11-13 08:23:48 +00:00
|
|
|
|
LspDiagnosticsDefaultHint = 'Hint',
|
|
|
|
|
LspDiagnosticsFloatingHint = 'HintMsg',
|
2020-11-19 21:42:47 +00:00
|
|
|
|
LspDiagnosticsSignHint = 'LspDiagnosticsFloatingHint',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
2020-11-13 08:23:48 +00:00
|
|
|
|
LspDiagnosticsDefaultInformation = 'Info',
|
|
|
|
|
LspDiagnosticsFloatingInformation = 'InfoMsg',
|
2020-11-19 21:42:47 +00:00
|
|
|
|
LspDiagnosticsSignInformation = 'LspDiagnosticsFloatingInformation',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
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',
|
2021-09-06 14:33:01 +00:00
|
|
|
|
CursorColumn = {bg=c_fg_strong},
|
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-12-17 18:58:56 +00:00
|
|
|
|
csBraces = 'Delimiter',
|
|
|
|
|
csClass = 'Structure',
|
|
|
|
|
csClassType = 'Type',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
csContextualStatement = 'Conditional',
|
2020-12-17 18:58:56 +00:00
|
|
|
|
csEndColon = 'Delimiter',
|
|
|
|
|
csGeneric = 'Typedef',
|
2020-08-18 18:03:10 +00:00
|
|
|
|
csInterpolation = 'Include',
|
|
|
|
|
csInterpolationDelimiter = 'SpecialChar',
|
|
|
|
|
csLogicSymbols = 'Operator',
|
2020-12-17 18:58:56 +00:00
|
|
|
|
csModifier = 'Keyword',
|
|
|
|
|
csNew = 'Operator',
|
|
|
|
|
csNewType = 'Type',
|
|
|
|
|
csParens = 'Delimiter',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
csPreCondit = 'PreProc',
|
2021-03-03 14:45:47 +00:00
|
|
|
|
csQuote = 'Delimiter',
|
2020-12-17 18:58:56 +00:00
|
|
|
|
csRepeat = 'Repeat',
|
|
|
|
|
csStorage = 'StorageClass',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
csUnspecifiedStatement = 'Statement',
|
2020-12-17 18:58:56 +00:00
|
|
|
|
csXmlTag = 'Define',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
csXmlTagName = 'Define',
|
2021-03-08 22:16:45 +00:00
|
|
|
|
razorCode = 'PreProc',
|
2021-03-29 21:53:51 +00:00
|
|
|
|
razorcsLHSMemberAccessOperator = 'Noise',
|
|
|
|
|
razorcsRHSMemberAccessOperator = 'razorcsLHSMemberAccessOperator',
|
2021-02-26 21:40:12 +00:00
|
|
|
|
razorcsStringDelimiter = 'razorhtmlValueDelimiter',
|
2021-03-03 14:45:47 +00:00
|
|
|
|
razorcsTypeNullable = 'Special',
|
2021-03-29 21:52:12 +00:00
|
|
|
|
razorcsUnaryOperatorKeyword = 'Operator',
|
2021-03-08 22:16:45 +00:00
|
|
|
|
razorDelimiter = 'Delimiter',
|
2021-03-03 14:45:47 +00:00
|
|
|
|
razorEventAttribute = 'PreCondit',
|
2021-03-08 22:16:45 +00:00
|
|
|
|
razorFor = 'razorIf',
|
2021-03-03 14:45:47 +00:00
|
|
|
|
razorhtmlAttribute = 'htmlArg',
|
|
|
|
|
razorhtmlAttributeOperator = 'Operator',
|
|
|
|
|
razorhtmlTag = 'htmlTag',
|
2021-02-26 21:40:12 +00:00
|
|
|
|
razorhtmlValueDelimiter = 'Delimiter',
|
2021-03-08 22:16:45 +00:00
|
|
|
|
razorIf = 'PreCondit',
|
|
|
|
|
razorImplicitExpression = 'PreProc',
|
|
|
|
|
razorLine = 'Constant',
|
|
|
|
|
razorUsing = 'Include',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.4. CSS ]]
|
2021-02-26 21:04:21 +00:00
|
|
|
|
cssAtRule = 'PreCondit',
|
|
|
|
|
cssAttr = 'Keyword',
|
|
|
|
|
cssAttrComma = 'Noise',
|
|
|
|
|
cssAttrRegion = 'Keyword',
|
|
|
|
|
cssBraces = 'Delimiter',
|
2021-09-07 11:18:46 +00:00
|
|
|
|
cssClassName = {fg=c_2},
|
2021-02-26 21:04:21 +00:00
|
|
|
|
cssClassNameDot = 'Noise',
|
|
|
|
|
cssFlexibleBoxAttr = 'cssAttr',
|
|
|
|
|
cssFunctionComma = 'Noise',
|
|
|
|
|
cssImportant = 'Exception',
|
|
|
|
|
cssNoise = 'Noise',
|
|
|
|
|
cssProp = 'Label',
|
|
|
|
|
cssPseudoClass = 'Special',
|
|
|
|
|
cssPseudoClassId = 'cssSelectorOp',
|
|
|
|
|
cssSelectorOp = 'Operator',
|
2021-09-07 11:18:46 +00:00
|
|
|
|
cssTagName = 'htmlTagName',
|
2021-02-26 21:04:21 +00:00
|
|
|
|
cssUnitDecorators = 'Type',
|
|
|
|
|
scssAmpersand = 'Special',
|
2021-02-26 23:23:46 +00:00
|
|
|
|
scssAttribute = 'Noise',
|
2021-02-26 21:04:21 +00:00
|
|
|
|
scssBoolean = 'Boolean',
|
|
|
|
|
scssDefault = 'Keyword',
|
2021-02-26 23:23:46 +00:00
|
|
|
|
scssElse = 'scssIf',
|
2021-09-07 11:18:46 +00:00
|
|
|
|
scssMixinName = 'Function',
|
2021-02-26 21:04:21 +00:00
|
|
|
|
scssIf = 'PreCondit',
|
|
|
|
|
scssInclude = 'Include',
|
2021-02-26 23:23:46 +00:00
|
|
|
|
scssSelectorChar = 'Delimiter',
|
|
|
|
|
scssDefinition = 'PreProc',
|
2021-09-07 11:18:46 +00:00
|
|
|
|
scssSelectorName = 'cssClassName',
|
2021-02-26 21:04:21 +00:00
|
|
|
|
scssVariable = 'Define',
|
2020-07-16 19:06:01 +00:00
|
|
|
|
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-12-17 18:58:56 +00:00
|
|
|
|
goBlock = 'Delimiter',
|
|
|
|
|
goBoolean = 'Boolean',
|
|
|
|
|
goBuiltins = 'Operator',
|
|
|
|
|
goField = 'Identifier',
|
|
|
|
|
goFloat = 'Float',
|
|
|
|
|
goFormatSpecifier = 'Character',
|
|
|
|
|
goFunction = 'Function',
|
|
|
|
|
goFunctionCall = 'goFunction',
|
|
|
|
|
goFunctionReturn = NONE,
|
|
|
|
|
goMethodCall = 'goFunctionCall',
|
|
|
|
|
goParamType = 'goReceiverType',
|
|
|
|
|
goPointerOperator = 'SpecialChar',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
goPredefinedIdentifiers = 'Constant',
|
2020-12-17 18:58:56 +00:00
|
|
|
|
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-12-17 18:58:56 +00:00
|
|
|
|
htmlArg = 'Label',
|
2021-09-07 11:18:46 +00:00
|
|
|
|
htmlBold = {style='bold'},
|
|
|
|
|
htmlTitle = {fg=c_fg_strongest, style='bold'},
|
2020-12-17 18:58:56 +00:00
|
|
|
|
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',
|
2021-09-07 11:18:46 +00:00
|
|
|
|
htmlTag = {fg=c_3},
|
|
|
|
|
htmlTagN = htmlTagName,
|
|
|
|
|
htmlTagName = {fg=c_3},
|
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-12-09 23:02:04 +00:00
|
|
|
|
jsonEscape = 'SpecialChar',
|
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-12-17 18:58:56 +00:00
|
|
|
|
luaBraces = 'Structure',
|
|
|
|
|
luaBrackets = 'Delimiter',
|
|
|
|
|
luaBuiltin = 'Keyword',
|
|
|
|
|
luaComma = 'Delimiter',
|
|
|
|
|
luaFuncArgName = 'Identifier',
|
|
|
|
|
luaFuncCall = 'Function',
|
|
|
|
|
luaFuncId = 'luaNoise',
|
|
|
|
|
luaFuncKeyword = 'Type',
|
|
|
|
|
luaFuncName = 'Function',
|
|
|
|
|
luaFuncParens = 'Delimiter',
|
|
|
|
|
luaFuncTable = 'Structure',
|
2020-12-17 18:41:55 +00:00
|
|
|
|
luaIn = 'luaRepeat',
|
|
|
|
|
luaLocal = 'Type',
|
2021-02-04 20:29:39 +00:00
|
|
|
|
luaNoise = 'Delimiter',
|
2020-12-17 18:41:55 +00:00
|
|
|
|
luaParens = 'Delimiter',
|
2021-03-11 21:39:56 +00:00
|
|
|
|
luaSpecialTable = 'Structure',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
luaSpecialValue = 'Function',
|
2021-03-11 21:44:28 +00:00
|
|
|
|
luaStringLongTag = function(self)
|
|
|
|
|
local delimiter = self.Delimiter
|
|
|
|
|
return {bg=delimiter.bg, fg=delimiter.fg, style='italic'}
|
|
|
|
|
end,
|
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 ]]
|
2021-08-01 19:09:42 +00:00
|
|
|
|
markdownCode = 'mkdCode',
|
|
|
|
|
markdownCodeDelimiter = 'mkdCodeDelimiter',
|
2021-09-07 11:18:46 +00:00
|
|
|
|
markdownH1 = {fg=c_fg_strongest, style='bold'},
|
|
|
|
|
markdownH2 = {fg=fg_strongest, style='bold'},
|
|
|
|
|
markdownH3 = {fg=c_fg_strong, style='bold'},
|
|
|
|
|
markdownH4 = {fg=c_fg_strong, style='bold'},
|
|
|
|
|
markdownH5 = {fg=c_fg_strong, style='bold'},
|
|
|
|
|
markdownH6 = {fg=c_fg_strong, style='bold'},
|
2021-08-01 19:09:42 +00:00
|
|
|
|
markdownLinkDelimiter = 'Delimiter',
|
|
|
|
|
markdownLinkTextDelimiter = 'markdownLinkDelimiter',
|
2021-09-07 11:18:46 +00:00
|
|
|
|
markdownUrl = {fg=c_primary},
|
|
|
|
|
mkdBold = {style='bold'},
|
2021-07-19 22:48:09 +00:00
|
|
|
|
mkdBoldItalic = 'mkdBold',
|
2020-12-17 18:58:56 +00:00
|
|
|
|
mkdCode = 'Keyword',
|
2021-09-07 11:18:46 +00:00
|
|
|
|
mkdCodeDelimiter = 'Noise',
|
2020-12-17 18:58:56 +00:00
|
|
|
|
mkdCodeEnd = 'mkdCodeStart',
|
2021-08-01 19:09:42 +00:00
|
|
|
|
mkdCodeStart = 'mkdCodeDelimiter',
|
2020-12-17 18:58:56 +00:00
|
|
|
|
mkdHeading = 'Delimiter',
|
|
|
|
|
mkdItalic = 'mkdBold',
|
2020-12-17 19:18:02 +00:00
|
|
|
|
mkdLineBreak = 'NonText',
|
2020-12-17 18:58:56 +00:00
|
|
|
|
mkdListItem = 'Special',
|
2020-12-17 19:18:02 +00:00
|
|
|
|
mkdRule = function(self) return {fg=self.Ignore.fg, style={'underline', color=self.Delimiter.fg}} end,
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.20. Python ]]
|
2020-12-17 18:58:56 +00:00
|
|
|
|
pythonBrackets = 'Delimiter',
|
|
|
|
|
pythonBuiltinFunc = 'Operator',
|
|
|
|
|
pythonBuiltinObj = 'Type',
|
|
|
|
|
pythonBuiltinType = 'Type',
|
|
|
|
|
pythonClass = 'Structure',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
pythonClassParameters = 'pythonParameters',
|
2020-12-17 18:58:56 +00:00
|
|
|
|
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-12-17 18:58:56 +00:00
|
|
|
|
rubyClass = 'Structure',
|
|
|
|
|
rubyDefine = 'Define',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
rubyInterpolationDelimiter = 'Delimiter',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.23. Scala ]]
|
2020-12-17 18:58:56 +00:00
|
|
|
|
scalaKeyword = 'Keyword',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
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-12-17 18:58:56 +00:00
|
|
|
|
shLoop = 'Repeat',
|
|
|
|
|
shParen = 'Delimiter',
|
|
|
|
|
shQuote = 'Delimiter',
|
|
|
|
|
shSet = 'Statement',
|
2020-07-16 19:06:01 +00:00
|
|
|
|
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',
|
2020-12-31 22:22:40 +00:00
|
|
|
|
tomlDate = 'Special',
|
|
|
|
|
tomlFloat = 'Float',
|
2020-12-17 18:58:56 +00:00
|
|
|
|
tomlKey = 'Label',
|
|
|
|
|
tomlTable = 'Structure',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.27. VimScript ]]
|
2020-12-30 19:00:28 +00:00
|
|
|
|
vimCmdSep = 'Delimiter',
|
|
|
|
|
vimFunction = 'Function',
|
2020-12-17 18:58:56 +00:00
|
|
|
|
vimFgBgAttrib = 'Constant',
|
2020-12-30 19:00:28 +00:00
|
|
|
|
vimHiCterm = 'Label',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
vimHiCtermFgBg = 'vimHiCterm',
|
2020-12-30 19:00:28 +00:00
|
|
|
|
vimHiGroup = 'Typedef',
|
|
|
|
|
vimHiGui = 'vimHiCterm',
|
2020-12-17 18:58:56 +00:00
|
|
|
|
vimHiGuiFgBg = 'vimHiGui',
|
|
|
|
|
vimHiKeyList = 'Operator',
|
|
|
|
|
vimIsCommand = 'Identifier',
|
2020-12-30 19:00:28 +00:00
|
|
|
|
vimOption = 'Keyword',
|
2020-11-18 19:04:37 +00:00
|
|
|
|
vimScriptDelim = 'Ignore',
|
2020-12-30 19:00:28 +00:00
|
|
|
|
vimSet = 'String',
|
2020-12-17 18:58:56 +00:00
|
|
|
|
vimSetEqual = 'Operator',
|
|
|
|
|
vimSetSep = 'Delimiter',
|
2020-12-30 19:00:28 +00:00
|
|
|
|
vimUserFunc = 'vimFunction',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.3.28. XML ]]
|
2020-12-17 18:58:56 +00:00
|
|
|
|
xmlAttrib = 'htmlArg',
|
|
|
|
|
xmlEndTag = 'xmlTag',
|
|
|
|
|
xmlEqual = 'Operator',
|
|
|
|
|
xmlTag = 'htmlTag',
|
2020-07-16 19:06:01 +00:00
|
|
|
|
xmlTagName = 'htmlTagName',
|
2020-06-25 20:45:31 +00:00
|
|
|
|
|
2020-09-01 19:08:49 +00:00
|
|
|
|
--[[ 4.3.29. SQL ]]
|
2020-12-17 18:58:56 +00:00
|
|
|
|
sqlKeyword = 'Keyword',
|
|
|
|
|
sqlParen = 'Delimiter',
|
|
|
|
|
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',
|
2021-02-28 15:42:44 +00:00
|
|
|
|
dosiniLabel = 'Label',
|
2020-09-02 16:30:41 +00:00
|
|
|
|
|
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 ]]
|
2021-01-26 17:34:33 +00:00
|
|
|
|
plantumlArrowLR = 'Statement',
|
2020-12-17 18:44:25 +00:00
|
|
|
|
plantumlColonLine = NONE,
|
2021-01-26 17:34:33 +00:00
|
|
|
|
plantumlMindmap = 'Label',
|
|
|
|
|
plantumlMindmap2 = 'Label',
|
2020-09-09 20:42:04 +00:00
|
|
|
|
|
2020-11-11 15:48:55 +00:00
|
|
|
|
--[[ 4.3.33. YAML ]]
|
|
|
|
|
yamlKey = 'Label',
|
|
|
|
|
|
2020-11-17 18:05:21 +00:00
|
|
|
|
--[[ 4.3.34. Git ]]
|
2021-02-02 20:36:20 +00:00
|
|
|
|
diffAdded = 'DiffAdd',
|
|
|
|
|
diffRemoved = 'DiffDelete',
|
2020-12-30 06:58:42 +00:00
|
|
|
|
gitcommitHeader = 'SpecialComment',
|
2020-12-30 19:10:18 +00:00
|
|
|
|
gitcommitDiscardedFile = 'gitcommitSelectedFile',
|
2020-12-11 07:35:22 +00:00
|
|
|
|
gitcommitOverFlow = 'Error',
|
2020-12-30 06:58:42 +00:00
|
|
|
|
gitcommitSelectedFile = 'Directory',
|
2020-12-11 07:35:22 +00:00
|
|
|
|
gitcommitSummary = 'Title',
|
2020-12-30 07:19:01 +00:00
|
|
|
|
gitcommitUntrackedFile = 'gitcommitSelectedFile',
|
2020-12-13 22:42:57 +00:00
|
|
|
|
gitconfigAssignment = 'String',
|
2020-12-30 06:53:44 +00:00
|
|
|
|
gitconfigEscape = 'SpecialChar',
|
|
|
|
|
gitconfigNone = 'Operator',
|
|
|
|
|
gitconfigSection = 'Structure',
|
|
|
|
|
gitconfigVariable = 'Label',
|
2020-12-17 18:58:56 +00:00
|
|
|
|
gitrebaseBreak = 'Keyword',
|
2020-11-17 18:05:21 +00:00
|
|
|
|
gitrebaseCommit = 'Tag',
|
|
|
|
|
gitrebaseDrop = 'Exception',
|
|
|
|
|
gitrebaseEdit = 'Define',
|
|
|
|
|
gitrebaseExec = 'PreProc',
|
|
|
|
|
gitrebaseFixup = 'gitrebaseSquash',
|
|
|
|
|
gitrebaseMerge = 'PreProc',
|
2020-12-11 07:35:22 +00:00
|
|
|
|
gitrebasePick = 'Include',
|
2020-11-17 18:05:21 +00:00
|
|
|
|
gitrebaseReset = 'gitrebaseLabel',
|
2020-12-11 07:35:22 +00:00
|
|
|
|
gitrebaseReword = 'gitrebasePick',
|
|
|
|
|
gitrebaseSquash = 'Macro',
|
2020-12-11 04:53:24 +00:00
|
|
|
|
gitrebaseSummary = 'Title',
|
2020-11-17 18:05:21 +00:00
|
|
|
|
|
2020-11-25 19:12:31 +00:00
|
|
|
|
--[[ 4.3.35. Vimtex ]]
|
2020-12-17 18:58:56 +00:00
|
|
|
|
texMathRegion = 'Number',
|
|
|
|
|
texMathSub = 'Number',
|
|
|
|
|
texMathSuper = 'Number',
|
2020-12-02 20:08:25 +00:00
|
|
|
|
texMathRegionX = 'Number',
|
|
|
|
|
texMathRegionXX = 'Number',
|
2020-11-25 19:12:31 +00:00
|
|
|
|
|
2020-12-05 19:44:35 +00:00
|
|
|
|
--[[ 4.3.36. Coq ]]
|
|
|
|
|
coqConstructor = 'Constant',
|
|
|
|
|
coqDefBinderType = 'coqDefType',
|
|
|
|
|
coqDefContents1 = 'coqConstructor',
|
|
|
|
|
coqDefType = 'Typedef',
|
|
|
|
|
coqIndBinderTerm = 'coqDefBinderType',
|
|
|
|
|
coqIndConstructor = 'Delimiter',
|
|
|
|
|
coqIndTerm = 'Type',
|
|
|
|
|
coqKwd = 'Keyword',
|
2020-12-07 03:16:24 +00:00
|
|
|
|
coqKwdParen = 'Function',
|
|
|
|
|
coqProofDelim = 'coqVernacCmd',
|
|
|
|
|
coqProofDot = 'coqTermPunctuation',
|
|
|
|
|
coqProofPunctuation = 'coqTermPunctuation',
|
|
|
|
|
coqRequire = 'Include',
|
|
|
|
|
coqTactic = 'Operator',
|
2020-12-05 19:44:35 +00:00
|
|
|
|
coqTermPunctuation = 'Delimiter',
|
|
|
|
|
coqVernacCmd = 'Statement',
|
2020-12-05 19:53:55 +00:00
|
|
|
|
coqVernacPunctuation = 'coqTermPunctuation',
|
2020-12-05 19:44:35 +00:00
|
|
|
|
|
2020-12-17 19:18:02 +00:00
|
|
|
|
--[[ 4.3.37 Help ]]
|
2020-12-19 21:36:03 +00:00
|
|
|
|
helpHeader = 'Label',
|
|
|
|
|
helpOption = 'Keyword',
|
2020-12-17 19:18:02 +00:00
|
|
|
|
helpHeadline = 'Title',
|
|
|
|
|
helpSectionDelim = 'Delimiter',
|
2021-09-07 11:18:46 +00:00
|
|
|
|
helpHyperTextJump = 'Special',
|
|
|
|
|
helpExample = 'Info',
|
2020-12-17 19:18:02 +00:00
|
|
|
|
|
2021-07-18 02:01:04 +00:00
|
|
|
|
--[[ 4.3.38 Man ]]
|
|
|
|
|
-- manBold = function(self) return vim.tbl_extend('force', self.mkdCode, {style='nocombine'}) end,
|
|
|
|
|
manOptionDesc = 'Special',
|
|
|
|
|
manReference = 'Tag',
|
|
|
|
|
manUnderline = '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 ]]
|
2021-09-06 14:33:01 +00:00
|
|
|
|
CocErrorHighlight = {style={'undercurl', color=c_alert}},
|
2021-09-07 11:24:46 +00:00
|
|
|
|
CocHintHighlight = {style={'undercurl', color=c_primary_strong}},
|
2021-04-01 17:59:21 +00:00
|
|
|
|
CocInfoHighlight = {style={'undercurl', color=pink_light}},
|
2021-09-07 11:24:46 +00:00
|
|
|
|
CocWarningHighlight = {style={'undercurl', color=c_primary_strong}},
|
2020-11-19 21:42:47 +00:00
|
|
|
|
CocErrorSign = 'ALEErrorSign',
|
|
|
|
|
CocHintSign = 'HintMsg',
|
|
|
|
|
CocInfoSign = 'InfoMsg',
|
2020-07-16 01:37:03 +00:00
|
|
|
|
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 ]]
|
2021-09-07 11:24:46 +00:00
|
|
|
|
GitGutterAdd = {fg=c_success},
|
|
|
|
|
GitGutterChange = {fg=c_modified},
|
|
|
|
|
GitGutterDelete = {fg=c_fail},
|
|
|
|
|
GitGutterChangeDelete = {fg=c_modified},
|
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 ]]
|
2021-09-07 11:18:46 +00:00
|
|
|
|
IndentGuidesOdd = {bg=c_bg_hl},
|
|
|
|
|
IndentGuidesEven = {bg=c_bg_hl_strong},
|
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',
|
2020-12-02 20:08:25 +00:00
|
|
|
|
BufferCurrentIndex = function(self) return {fg=self.InfoMsg.fg, bg=self.BufferCurrent.bg} end,
|
2021-09-07 11:24:46 +00:00
|
|
|
|
BufferCurrentMod = {fg=c_modified, bg=c_bg, style='bold'},
|
2020-11-15 21:24:31 +00:00
|
|
|
|
BufferCurrentSign = 'HintMsg',
|
|
|
|
|
BufferCurrentTarget = 'BufferCurrentSign',
|
|
|
|
|
|
|
|
|
|
BufferInactive = 'BufferVisible',
|
2020-12-02 20:08:25 +00:00
|
|
|
|
BufferInactiveIndex = function(self) return {fg=self.InfoMsg.fg, bg=self.BufferInactive.bg} end,
|
2020-11-15 21:24:31 +00:00
|
|
|
|
BufferInactiveMod = 'BufferVisibleMod',
|
2020-11-22 23:35:11 +00:00
|
|
|
|
BufferInactiveSign = 'BufferVisibleSign',
|
2020-11-15 21:24:31 +00:00
|
|
|
|
BufferInactiveTarget = 'BufferVisibleTarget',
|
|
|
|
|
|
2020-11-22 22:10:49 +00:00
|
|
|
|
BufferTabpages = {fg=BG, bg=FG, style='bold'},
|
2020-11-18 17:46:55 +00:00
|
|
|
|
BufferTabpageFill = 'TabLineFill',
|
2020-11-15 21:24:31 +00:00
|
|
|
|
|
|
|
|
|
BufferVisible = 'TabLine',
|
2020-12-02 20:08:25 +00:00
|
|
|
|
BufferVisibleIndex = function(self) return {fg=self.InfoMsg.fg, bg=self.BufferVisible.bg} end,
|
2021-09-06 14:33:01 +00:00
|
|
|
|
BufferVisibleMod = {fg=white, bg=c_bg_darkest, style='italic'},
|
2020-11-15 21:24:31 +00:00
|
|
|
|
BufferVisibleSign = 'BufferVisible',
|
2020-11-19 21:42:47 +00:00
|
|
|
|
BufferVisibleTarget = function(self)
|
2021-02-26 23:23:46 +00:00
|
|
|
|
local super = self.BufferVisibleMod
|
|
|
|
|
return {fg=super.fg, bg=super.bg, style='bold'}
|
2020-11-19 21:42:47 +00:00
|
|
|
|
end,
|
2020-11-21 18:03:40 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.4.10. vim-sandwhich ]]
|
|
|
|
|
OperatorSandwichChange = 'DiffText',
|
2020-12-30 07:10:50 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.4.11. Fern ]]
|
|
|
|
|
FernBranchText = 'Directory',
|
2021-02-26 20:22:59 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.4.12. LSPSaga ]]
|
|
|
|
|
DefinitionCount = 'Number',
|
2021-07-04 01:48:02 +00:00
|
|
|
|
DefinitionIcon = 'Special',
|
2021-02-26 20:22:59 +00:00
|
|
|
|
ReferencesCount = 'Number',
|
2021-07-04 01:48:02 +00:00
|
|
|
|
ReferencesIcon = 'DefinitionIcon',
|
|
|
|
|
TargetFileName = 'Directory',
|
2021-02-26 20:22:59 +00:00
|
|
|
|
TargetWord = 'Title',
|
2021-07-01 22:29:09 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.4.13. indent-blankline.nvim ]]
|
|
|
|
|
IndentBlanklineChar = function(self) return vim.tbl_extend('force', self.Whitespace, {style='nocombine'}) end,
|
|
|
|
|
IndentBlanklineSpaceChar = 'IndentBlanklineChar',
|
2021-07-03 22:17:46 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.4.14. trouble.nvim ]]
|
|
|
|
|
TroubleCount = function(self) return vim.tbl_extend('force', self.Number, {style='underline'}) end,
|
2021-07-04 01:48:02 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.4.14. todo-comments.nvim ]]
|
|
|
|
|
TodoFgFIX = function(self) return {fg=self.ErrorMsg.fg} end,
|
|
|
|
|
TodoFgHACK = function(self) return {fg=self.Todo.fg} end,
|
|
|
|
|
TodoFgNOTE = 'HintMsg',
|
|
|
|
|
TodoFgPERF = 'InfoMsg',
|
2021-08-03 03:20:54 +00:00
|
|
|
|
TodoFgTODO = function(_) return {fg=cyan, style='italic'} end,
|
2021-07-04 01:48:02 +00:00
|
|
|
|
TodoFgWARN = function(self) return {fg=self.WarningMsg.fg} end,
|
|
|
|
|
|
2021-09-06 14:33:01 +00:00
|
|
|
|
TodoBgFIX = function(self) return {fg=c_bg, bg=self.ErrorMsg.fg, style={'bold', 'italic', 'nocombine'}} end,
|
|
|
|
|
TodoBgHACK = function(self) return {fg=c_bg, bg=self.Todo.fg, style={'bold', 'italic', 'nocombine'}} end,
|
|
|
|
|
TodoBgNOTE = function(self) return {fg=c_bg, bg=self.Hint.bg, style={'bold', 'italic', 'nocombine'}} end,
|
|
|
|
|
TodoBgPERF = function(self) return {fg=c_bg, bg=self.Info.bg, style={'bold', 'italic', 'nocombine'}} end,
|
|
|
|
|
TodoBgTODO = function(_) return {fg=c_bg, bg=cyan, style={'bold', 'italic', 'nocombine'}} end,
|
|
|
|
|
TodoBgWARN = function(self) return {fg=c_bg, bg=self.Warning.bg, style={'bold', 'italic', 'nocombine'}} end,
|
2021-07-04 01:48:02 +00:00
|
|
|
|
|
|
|
|
|
TodoSignFIX = 'TodoFgFIX',
|
|
|
|
|
TodoSignHACK = 'TodoFgHACK',
|
|
|
|
|
TodoSignNOTE = 'TodoFgNOTE',
|
|
|
|
|
TodoSignPERF = 'TodoFgPERF',
|
|
|
|
|
TodoSignTODO = 'TodoFgTODO',
|
|
|
|
|
TodoSignWARN = 'TodoFgWARN',
|
2021-07-06 04:26:55 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.4.15. gitsigns.nvim ]]
|
|
|
|
|
GitSignsAdd = 'GitGutterAdd',
|
|
|
|
|
GitSignsChange = 'GitGutterChange',
|
|
|
|
|
GitSignsDelete = 'GitGutterDelete',
|
2021-08-04 21:20:27 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.4.16. nvim-compe ]]
|
|
|
|
|
CompeDocumentationBorder = 'FloatBorder',
|
2021-08-21 02:46:18 +00:00
|
|
|
|
|
|
|
|
|
--[[ 4.4.16. packer.nvim ]]
|
|
|
|
|
packerFail = 'ErrorMsg',
|
|
|
|
|
packerHash = 'Number',
|
|
|
|
|
packerPackageNotLoaded = 'Ignore',
|
|
|
|
|
packerStatusFail = 'Statement',
|
|
|
|
|
packerStatusSuccess = 'packerStatusFail',
|
2021-09-07 11:24:46 +00:00
|
|
|
|
packerSuccess = function(self) return {fg=c_success, style=self.packerFail.style} end,
|
2021-09-06 14:33:01 +00:00
|
|
|
|
|
|
|
|
|
-- [[ 5.0.1 custom ]]
|
|
|
|
|
TabLineFill = { fg=ui_bg, fg=ui_bg, style='italic' },
|
|
|
|
|
TabLineItem = { bg=ui_bg, fg=ui_fg, style='italic' },
|
|
|
|
|
TabLineItemSel = { bg=ui_bg, fg=ui_fg_strong, style='italic' },
|
|
|
|
|
|
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.
|
|
|
|
|
]]
|
|
|
|
|
|
2021-08-03 23:42:30 +00:00
|
|
|
|
local terminal_colors = {
|
2021-09-06 14:33:01 +00:00
|
|
|
|
[1] = c_bg,
|
|
|
|
|
[2] = c_alert_strong,
|
2020-06-25 20:45:31 +00:00
|
|
|
|
[3] = green_dark,
|
|
|
|
|
[4] = orange,
|
|
|
|
|
[5] = blue,
|
|
|
|
|
[6] = magenta_dark,
|
|
|
|
|
[7] = teal,
|
2021-09-06 14:33:01 +00:00
|
|
|
|
[8] = c_fg,
|
|
|
|
|
[9] = c_fg_strong,
|
|
|
|
|
[10] = c_alert,
|
2020-06-25 20:45:31 +00:00
|
|
|
|
[11] = green,
|
|
|
|
|
[12] = yellow,
|
|
|
|
|
[13] = turqoise,
|
|
|
|
|
[14] = purple,
|
|
|
|
|
[15] = cyan,
|
2021-09-06 14:33:01 +00:00
|
|
|
|
[16] = c_fg_weak
|
2020-06-25 20:45:31 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
--[[ 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,
|
2021-09-06 11:58:30 +00:00
|
|
|
|
I source paper-tonic by using `colorscheme paper-tonic`.
|
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-11-19 21:42:47 +00:00
|
|
|
|
require(vim.g.colors_name)(
|
2020-06-25 20:45:31 +00:00
|
|
|
|
highlight_group_normal,
|
|
|
|
|
highlight_groups,
|
2021-08-03 23:42:30 +00:00
|
|
|
|
terminal_colors
|
2020-06-25 20:45:31 +00:00
|
|
|
|
)
|
|
|
|
|
|
2020-07-16 01:37:03 +00:00
|
|
|
|
-- Thanks to Romain Lafourcade (https://github.com/romainl) for the original template (romainl/vim-rnb).
|