Simplify linking process (preserve backwards compatability)
This commit is contained in:
parent
9d1eb4370c
commit
f88f0d1ead
|
@ -1,6 +1,6 @@
|
||||||
" This file should be edited by the user.
|
|
||||||
" Read the instructions of each section and then edit them as desired.
|
|
||||||
lua << EOF
|
lua << EOF
|
||||||
|
-- This file should be edited by the user. Read the instructions of each section and then edit them as desired.
|
||||||
|
|
||||||
--[[ Highlite, a Neovim colorscheme template.
|
--[[ Highlite, a Neovim colorscheme template.
|
||||||
* Author: Iron-E (https://github.com/Iron-E)
|
* Author: Iron-E (https://github.com/Iron-E)
|
||||||
* Repository: https://github.com/nvim-highlite
|
* Repository: https://github.com/nvim-highlite
|
||||||
|
@ -124,7 +124,7 @@ local purple_light = {'#af60af', 63, 'magenta'}
|
||||||
Or you can link an highlight group to another.
|
Or you can link an highlight group to another.
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
<highlight group name> = {link='<highlight group name>'}
|
<highlight group name> = '<highlight group name>'
|
||||||
```
|
```
|
||||||
|
|
||||||
Here is an example:
|
Here is an example:
|
||||||
|
@ -184,38 +184,38 @@ local highlight_group_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 highlight_groups = {
|
local highlight_groups = {
|
||||||
--[[ 4.1. Text Analysis ]]
|
--[[ 4.1. Text Analysis ]]
|
||||||
Comment = {bg=NONE, fg=gray, style='italic'},
|
Comment = {bg=NONE, fg=gray, style='italic'},
|
||||||
EndOfBuffer = {link='NonText' },
|
EndOfBuffer = 'NonText',
|
||||||
NonText = {bg=NONE, fg=gray_darker, style=NONE },
|
NonText = {bg=NONE, fg=gray_darker, style=NONE},
|
||||||
Whitespace = {link='NonText' },
|
Whitespace = 'NonText',
|
||||||
|
|
||||||
--[[ 4.1.1. Literals]]
|
--[[ 4.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 = 'Number',
|
||||||
|
|
||||||
--[[ 4.1.2. Identifiers]]
|
--[[ 4.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},
|
||||||
|
|
||||||
--[[ 4.1.3. Syntax]]
|
--[[ 4.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 = {bg=NONE, fg=turqoise, style='bold' },
|
Repeat = {bg=NONE, fg=turqoise, style='bold' },
|
||||||
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=teal, style=NONE },
|
Keyword = {bg=NONE, fg=teal, style=NONE },
|
||||||
Exception = {bg=NONE, fg=red_light, style='bold' },
|
Exception = {bg=NONE, fg=red_light, style='bold' },
|
||||||
|
|
||||||
--[[ 4.1.4. Metatextual Information]]
|
--[[ 4.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 = {bg=NONE, fg=blue, style='italic' },
|
Macro = {bg=NONE, fg=blue, style='italic' },
|
||||||
PreCondit = {bg=NONE, fg=tan, style='italic' },
|
PreCondit = {bg=NONE, fg=tan, style='italic' },
|
||||||
|
|
||||||
--[[ 4.1.5. Semantics]]
|
--[[ 4.1.5. Semantics]]
|
||||||
Type = {bg=NONE, fg=cyan, style=NONE },
|
Type = {bg=NONE, fg=cyan, style=NONE },
|
||||||
|
@ -224,49 +224,49 @@ local highlight_groups = {
|
||||||
Typedef = {bg=NONE, fg=cyan, style='italic'},
|
Typedef = {bg=NONE, fg=cyan, style='italic'},
|
||||||
|
|
||||||
--[[ 4.1.6. Edge Cases]]
|
--[[ 4.1.6. Edge Cases]]
|
||||||
Special = {bg=NONE, fg=magenta, style='bold' },
|
Special = {bg=NONE, fg=magenta, style='bold'},
|
||||||
SpecialChar = {link='Character' },
|
SpecialChar = 'Character',
|
||||||
SpecialKey = {link='Character' },
|
SpecialKey = 'Character',
|
||||||
Tag = {link='Underlined' },
|
Tag = 'Underlined',
|
||||||
Delimiter = {bg=NONE, fg=white, style=NONE },
|
Delimiter = {bg=NONE, fg=white, style=NONE},
|
||||||
SpecialComment = {bg=NONE, fg=gray, style={'bold', 'nocombine'}},
|
SpecialComment = {bg=NONE, fg=gray, style={'bold', 'nocombine'}},
|
||||||
Debug = {link='WarningMsg' },
|
Debug = 'WarningMsg',
|
||||||
|
|
||||||
--[[ 4.1.7. Help Syntax]]
|
--[[ 4.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 = 'Underlined',
|
||||||
helpSpecial = {link='Function' },
|
helpSpecial = 'Function',
|
||||||
Hint = {bg=magenta, fg=black, style='bold' },
|
Hint = {bg=magenta, fg=black, style='bold'},
|
||||||
Info = {bg=pink_light, fg=black, style='bold' },
|
Info = {bg=pink_light, fg=black, style='bold'},
|
||||||
Warning = {bg=orange, fg=black, style='bold' },
|
Warning = {bg=orange, fg=black, style='bold'},
|
||||||
|
|
||||||
--[[ 4.2... Editor UI ]]
|
--[[ 4.2... Editor UI ]]
|
||||||
--[[ 4.2.1. Status Line]]
|
--[[ 4.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 = 'StatusLine',
|
||||||
StatusLineTermNC = {link='StatusLineNC' },
|
StatusLineTermNC = 'StatusLineNC',
|
||||||
|
|
||||||
--[[ 4.2.2. Separators]]
|
--[[ 4.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' },
|
||||||
|
|
||||||
--[[ 4.2.3. Conditional Line Highlighting]]
|
--[[ 4.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 = 'ErrorMsg',
|
||||||
debugPC = {link='ColorColumn' },
|
debugPC = '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},
|
||||||
|
|
||||||
--[[ 4.2.4. Popup Menu]]
|
--[[ 4.2.4. Popup Menu]]
|
||||||
Pmenu = {bg=gray_dark, fg=FG, style=NONE},
|
Pmenu = {bg=gray_dark, fg=FG, style=NONE},
|
||||||
|
@ -286,7 +286,7 @@ local highlight_groups = {
|
||||||
DiffText = {bg=NONE, fg=NONE, style='inverse'},
|
DiffText = {bg=NONE, fg=NONE, style='inverse'},
|
||||||
|
|
||||||
--[[ 4.2.7. Searching]]
|
--[[ 4.2.7. Searching]]
|
||||||
IncSearch = {bg=NONE, fg=NONE, style='inverse' },
|
IncSearch = {bg=NONE, fg=NONE, style='inverse'},
|
||||||
Search = {bg=NONE, fg=NONE, style={'underline', color=white}},
|
Search = {bg=NONE, fg=NONE, style={'underline', color=white}},
|
||||||
MatchParen = {bg=NONE, fg=green, style={'bold', 'underline' }},
|
MatchParen = {bg=NONE, fg=green, style={'bold', 'underline' }},
|
||||||
|
|
||||||
|
@ -298,47 +298,47 @@ local highlight_groups = {
|
||||||
|
|
||||||
--[[ 4.2.9. Conditional Column Highlighting]]
|
--[[ 4.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},
|
||||||
|
|
||||||
--[[ 4.2.10. Messages]]
|
--[[ 4.2.10. Messages]]
|
||||||
ErrorMsg = {bg=NONE, fg=red, style='bold' },
|
ErrorMsg = {bg=NONE, fg=red, style='bold'},
|
||||||
HintMsg = {bg=NONE, fg=magenta, style='bold' },
|
HintMsg = {bg=NONE, fg=magenta, style='bold'},
|
||||||
InfoMsg = {bg=NONE, fg=pink_light, style='bold' },
|
InfoMsg = {bg=NONE, fg=pink_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'},
|
||||||
|
|
||||||
--[[ 4.2.11. LSP ]]
|
--[[ 4.2.11. LSP ]]
|
||||||
LspDiagnosticsError = {link='Error' },
|
LspDiagnosticsError = 'Error',
|
||||||
LspDiagnosticsErrorFloating = {link='ErrorMsg'},
|
LspDiagnosticsErrorFloating = 'ErrorMsg',
|
||||||
LspDiagnosticsErrorSign = {link='ErrorMsg' },
|
LspDiagnosticsErrorSign = 'ErrorMsg',
|
||||||
|
|
||||||
LspDiagnosticsWarning = {link='Warning' },
|
LspDiagnosticsWarning = 'Warning',
|
||||||
LspDiagnosticsWarningFloating = {link='WarningMsg'},
|
LspDiagnosticsWarningFloating = 'WarningMsg',
|
||||||
LspDiagnosticsWarningSign = {link='WarningMsg' },
|
LspDiagnosticsWarningSign = 'WarningMsg',
|
||||||
|
|
||||||
LspDiagnosticsHint = {link='Hint' },
|
LspDiagnosticsHint = 'Hint',
|
||||||
LspDiagnosticsHintFloating = {link='HintMsg'},
|
LspDiagnosticsHintFloating = 'HintMsg',
|
||||||
LspDiagnosticsHintSign = {link='HintMsg' },
|
LspDiagnosticsHintSign = 'HintMsg',
|
||||||
|
|
||||||
LspDiagnosticsInformation = {link='Info' },
|
LspDiagnosticsInformation = 'Info',
|
||||||
LspDiagnosticsInformationFloating = {link='InfoMsg'},
|
LspDiagnosticsInformationFloating = 'InfoMsg',
|
||||||
LspDiagnosticsInformationSign = {link='InfoMsg' },
|
LspDiagnosticsInformationSign = 'InfoMsg',
|
||||||
|
|
||||||
LspDiagnosticsUnderline = {bg=NONE, fg=NONE, style={'undercurl', color=white}},
|
LspDiagnosticsUnderline = {bg=NONE, fg=NONE, style={'undercurl', color=white}},
|
||||||
LspDiagnosticsUnderlineError = {link='CocErrorHighlight' },
|
LspDiagnosticsUnderlineError = 'CocErrorHighlight',
|
||||||
LspDiagnosticsUnderlineHint = {link='CocHintHighlight' },
|
LspDiagnosticsUnderlineHint = 'CocHintHighlight',
|
||||||
LspDiagnosticsUnderlineInfo = {link='CocInfoHighlight' },
|
LspDiagnosticsUnderlineInfo = 'CocInfoHighlight',
|
||||||
LspDiagnosticsUnderlineWarning = {link='CocWarningHighlight'},
|
LspDiagnosticsUnderlineWarning = 'CocWarningHighlight',
|
||||||
|
|
||||||
--[[ 4.2.12. Cursor ]]
|
--[[ 4.2.12. Cursor ]]
|
||||||
Cursor = {bg=NONE, fg=NONE, style='inverse'},
|
Cursor = {bg=NONE, fg=NONE, style='inverse'},
|
||||||
CursorIM = {link='Cursor' },
|
CursorIM = 'Cursor',
|
||||||
CursorColumn = {bg=gray_dark, fg=NONE, style=NONE },
|
CursorColumn = {bg=gray_dark, fg=NONE, style=NONE },
|
||||||
|
|
||||||
--[[ 4.2.13. Misc ]]
|
--[[ 4.2.13. Misc ]]
|
||||||
Directory = {bg=NONE, fg=ice, style='bold'},
|
Directory = {bg=NONE, fg=ice, style='bold'},
|
||||||
Terminal = {link='Normal' },
|
Terminal = 'Normal',
|
||||||
|
|
||||||
--[[ 4.3. Programming Languages
|
--[[ 4.3. Programming Languages
|
||||||
Everything in this section is OPTIONAL. Feel free to remove everything
|
Everything in this section is OPTIONAL. Feel free to remove everything
|
||||||
|
@ -346,186 +346,187 @@ local highlight_groups = {
|
||||||
missing.
|
missing.
|
||||||
]]
|
]]
|
||||||
--[[ 4.3.1. C ]]
|
--[[ 4.3.1. C ]]
|
||||||
cConstant = {link='Constant'},
|
cConstant = 'Constant',
|
||||||
cCustomClass = {link='Type' },
|
cCustomClass = 'Type',
|
||||||
|
|
||||||
--[[ 4.3.2. C++ ]]
|
--[[ 4.3.2. C++ ]]
|
||||||
cppSTLexception = {link='Exception'},
|
cppSTLexception = 'Exception',
|
||||||
cppSTLnamespace = {link='String' },
|
cppSTLnamespace = 'String',
|
||||||
|
|
||||||
--[[ 4.3.3 C# ]]
|
--[[ 4.3.3 C# ]]
|
||||||
csBraces = {link='Delimiter'},
|
csBraces = 'Delimiter',
|
||||||
csClass = {link='Structure'},
|
csClass = 'Structure',
|
||||||
csClassType = {link='Type'},
|
csClassType = 'Type',
|
||||||
csContextualStatement = {link='Conditional'},
|
csContextualStatement = 'Conditional',
|
||||||
csEndColon = {link='Delimiter'},
|
csEndColon = 'Delimiter',
|
||||||
csLogicSymbols = {link='Operator'},
|
csLogicSymbols = 'Operator',
|
||||||
csModifier = {link='Keyword'},
|
csModifier = 'Keyword',
|
||||||
csNew = {link='Operator'},
|
csNew = 'Operator',
|
||||||
csNewType = {link='Type'},
|
csNewType = 'Type',
|
||||||
csParens = {link='Delimiter'},
|
csParens = 'Delimiter',
|
||||||
csPreCondit = {link='PreProc'},
|
csPreCondit = 'PreProc',
|
||||||
csRepeat = {link='Repeat'},
|
csRepeat = 'Repeat',
|
||||||
csStorage = {link='StorageClass'},
|
csStorage = 'StorageClass',
|
||||||
csUnspecifiedStatement = {link='Statement'},
|
csUnspecifiedStatement = 'Statement',
|
||||||
csXmlTag = {link='Define'},
|
csXmlTag = 'Define',
|
||||||
csXmlTagName = {link='Define'},
|
csXmlTagName = 'Define',
|
||||||
|
|
||||||
--[[ 4.3.4. CSS ]]
|
--[[ 4.3.4. CSS ]]
|
||||||
cssProp = {link='Keyword'},
|
cssProp = 'Keyword',
|
||||||
cssTagName = {link='Type' },
|
cssTagName = 'Type',
|
||||||
|
|
||||||
--[[ 4.3.5. Dart ]]
|
--[[ 4.3.5. Dart ]]
|
||||||
dartLibrary = {link='Statement'},
|
dartLibrary = 'Statement',
|
||||||
|
|
||||||
--[[ 4.3.6. dot ]]
|
--[[ 4.3.6. dot ]]
|
||||||
dotKeyChar = {link='Character'},
|
dotKeyChar = 'Character',
|
||||||
dotType = {link='Type' },
|
dotType = 'Type',
|
||||||
|
|
||||||
--[[ 4.3.7. Go ]]
|
--[[ 4.3.7. Go ]]
|
||||||
goBlock = {link='Delimiter' },
|
goBlock = 'Delimiter',
|
||||||
goBoolean = {link='Boolean' },
|
goBoolean = 'Boolean',
|
||||||
goBuiltins = {link='Operator' },
|
goBuiltins = 'Operator',
|
||||||
goField = {link='Identifier' },
|
goField = 'Identifier',
|
||||||
goFloat = {link='Float' },
|
goFloat = 'Float',
|
||||||
goFormatSpecifier = {link='Character' },
|
goFormatSpecifier = 'Character',
|
||||||
goFunction = {link='Function' },
|
goFunction = 'Function',
|
||||||
goFunctionCall = {link='goFunction' },
|
goFunctionCall = 'goFunction',
|
||||||
goFunctionReturn = {bg=NONE, fg=NONE, style=NONE},
|
goFunctionReturn = {bg=NONE, fg=NONE, style=NONE},
|
||||||
goMethodCall = {link='goFunctionCall' },
|
goMethodCall = 'goFunctionCall',
|
||||||
goParamType = {link='goReceiverType' },
|
goParamType = 'goReceiverType',
|
||||||
goPointerOperator = {link='SpecialChar' },
|
goPointerOperator = 'SpecialChar',
|
||||||
goPredefinedIdentifiers = {link='Constant' },
|
goPredefinedIdentifiers = 'Constant',
|
||||||
goReceiver = {link='goBlock' },
|
goReceiver = 'goBlock',
|
||||||
goReceiverType = {link='goTypeName' },
|
goReceiverType = 'goTypeName',
|
||||||
goSimpleParams = {link='goBlock' },
|
goSimpleParams = 'goBlock',
|
||||||
goType = {link='Type' },
|
goType = 'Type',
|
||||||
goTypeConstructor = {link='goFunction' },
|
goTypeConstructor = 'goFunction',
|
||||||
goTypeName = {link='Type' },
|
goTypeName = 'Type',
|
||||||
goVarAssign = {link='Identifier' },
|
goVarAssign = 'Identifier',
|
||||||
goVarDefs = {link='goVarAssign' },
|
goVarDefs = 'goVarAssign',
|
||||||
|
|
||||||
--[[ 4.3.8. HTML ]]
|
--[[ 4.3.8. HTML ]]
|
||||||
htmlBold = {bg=NONE, fg=NONE, style='bold' },
|
htmlBold = {bg=NONE, fg=NONE, style='bold' },
|
||||||
htmlItalic = {bg=NONE, fg=NONE, style='italic'},
|
htmlItalic = {bg=NONE, fg=NONE, style='italic'},
|
||||||
htmlSpecialTagName = {link='Tag' },
|
htmlSpecialTagName = 'Tag',
|
||||||
|
|
||||||
--[[ 4.3.9. Java ]]
|
--[[ 4.3.9. Java ]]
|
||||||
javaClassDecl = {link='Structure'},
|
javaClassDecl = 'Structure',
|
||||||
|
|
||||||
--[[ 4.3.10. JavaScript ]]
|
--[[ 4.3.10. JavaScript ]]
|
||||||
jsFuncBlock = {link='Function' },
|
jsFuncBlock = 'Function',
|
||||||
jsObjectKey = {link='Type' },
|
jsObjectKey = 'Type',
|
||||||
jsReturn = {link='Keyword' },
|
jsReturn = 'Keyword',
|
||||||
jsVariableDef = {link='Identifier'},
|
jsVariableDef = 'Identifier',
|
||||||
|
|
||||||
--[[ 4.3.11. JSON ]]
|
--[[ 4.3.11. JSON ]]
|
||||||
jsonStringSQError = {link='Exception'},
|
jsonStringSQError = 'Exception',
|
||||||
|
|
||||||
--[[ 4.3.12. Lua ]]
|
--[[ 4.3.12. Lua ]]
|
||||||
luaBraces = {link='Structure'},
|
luaBraces = 'Structure',
|
||||||
luaBrackets = {link='Delimiter'},
|
luaBrackets = 'Delimiter',
|
||||||
luaBuiltin = {link='Keyword'},
|
luaBuiltin = 'Keyword',
|
||||||
luaComma = {link='Delimiter'},
|
luaComma = 'Delimiter',
|
||||||
luaFuncCall = {link='Function'},
|
luaFuncCall = 'Function',
|
||||||
luaFuncId = {link='luaNoise'},
|
luaFuncId = 'luaNoise',
|
||||||
luaFuncKeyword = {link='Function'},
|
luaFuncKeyword = 'Function',
|
||||||
luaFuncName = {link='Normal'},
|
luaFuncName = 'Identifier',
|
||||||
luaFuncParens = {link='Delimiter'},
|
luaFuncParens = 'Delimiter',
|
||||||
luaFuncTable = {link='Structure'},
|
luaFuncTable = 'Structure',
|
||||||
luaLocal = {link='Type'},
|
luaLocal = 'Type',
|
||||||
luaNoise = {link='Operator'},
|
luaNoise = 'Operator',
|
||||||
luaParens = {link='Delimiter'},
|
luaParens = 'Delimiter',
|
||||||
luaSpecialTable = {link='Normal'},
|
luaSpecialTable = 'Identifier',
|
||||||
luaSpecialValue = {link='Function'},
|
luaSpecialValue = 'Function',
|
||||||
|
|
||||||
--[[ 4.3.12. Make ]]
|
--[[ 4.3.12. Make ]]
|
||||||
makeCommands = {link='Statment'},
|
makeCommands = 'Statment',
|
||||||
makeSpecTarget = {link='Type' },
|
makeSpecTarget = 'Type',
|
||||||
|
|
||||||
--[[ 4.3.13. Markdown ]]
|
--[[ 4.3.13. Markdown ]]
|
||||||
markdownH1 = {bg=NONE, fg=red, style='bold' },
|
markdownH1 = {bg=NONE, fg=red, style='bold'},
|
||||||
markdownH2 = {bg=NONE, fg=orange, style='bold' },
|
markdownH2 = {bg=NONE, fg=orange, style='bold'},
|
||||||
markdownH3 = {bg=NONE, fg=yellow, style='bold' },
|
markdownH3 = {bg=NONE, fg=yellow, style='bold'},
|
||||||
markdownH4 = {bg=NONE, fg=green_dark, style='bold' },
|
markdownH4 = {bg=NONE, fg=green_dark, style='bold'},
|
||||||
markdownH5 = {bg=NONE, fg=cyan, style='bold' },
|
markdownH5 = {bg=NONE, fg=cyan, style='bold'},
|
||||||
markdownH6 = {bg=NONE, fg=purple_light, style='bold' },
|
markdownH6 = {bg=NONE, fg=purple_light, style='bold'},
|
||||||
mkdBold = {link='SpecialChar'},
|
mkdBold = 'SpecialChar',
|
||||||
mkdCode = {link='Comment' },
|
mkdCode = 'Comment',
|
||||||
mkdCodeDelimiter = {link='Delimiter' },
|
mkdCodeDelimiter = 'Delimiter',
|
||||||
mkdItalic = {link='SpecialChar'},
|
mkdItalic = 'SpecialChar',
|
||||||
mkdListItem = {link='Special' },
|
mkdListItem = 'Special',
|
||||||
mkdNonListItemBlock = {link='Normal' },
|
mkdNonListItemBlock = 'Normal',
|
||||||
texMathZoneY = {link='String' },
|
texMathZoneY = 'String',
|
||||||
|
|
||||||
--[[ 4.3.20. Python ]]
|
--[[ 4.3.20. Python ]]
|
||||||
pythonBrackets = {link='Delimiter' },
|
pythonBrackets = 'Delimiter',
|
||||||
pythonBuiltinFunc = {link='Operator' },
|
pythonBuiltinFunc = 'Operator',
|
||||||
pythonBuiltinObj = {link='Type' },
|
pythonBuiltinObj = 'Type',
|
||||||
pythonBuiltinType = {link='Type' },
|
pythonBuiltinType = 'Type',
|
||||||
pythonClass = {link='Structure' },
|
pythonClass = 'Structure',
|
||||||
pythonClassParameters = {link='pythonParameters'},
|
pythonClassParameters = 'pythonParameters',
|
||||||
pythonDecorator = {link='PreProc' },
|
pythonDecorator = 'PreProc',
|
||||||
pythonDottedName = {link='Identifier' },
|
pythonDottedName = 'Identifier',
|
||||||
pythonError = {link='Error' },
|
pythonError = 'Error',
|
||||||
pythonException = {link='Exception' },
|
pythonException = 'Exception',
|
||||||
pythonInclude = {link='Include' },
|
pythonInclude = 'Include',
|
||||||
pythonIndentError = {link='pythonError' },
|
pythonIndentError = 'pythonError',
|
||||||
pythonLambdaExpr = {link='pythonOperator' },
|
pythonLambdaExpr = 'pythonOperator',
|
||||||
pythonOperator = {link='Operator' },
|
pythonOperator = 'Operator',
|
||||||
pythonParam = {link='Identifier' },
|
pythonParam = 'Identifier',
|
||||||
pythonParameters = {link='Delimiter' },
|
pythonParameters = 'Delimiter',
|
||||||
pythonSelf = {link='Statement' },
|
pythonSelf = 'Statement',
|
||||||
pythonSpaceError = {link='pythonError' },
|
pythonSpaceError = 'pythonError',
|
||||||
pythonStatement = {link='Statement' },
|
pythonStatement = 'Statement',
|
||||||
|
|
||||||
--[[ 4.3.21. Ruby ]]
|
--[[ 4.3.21. Ruby ]]
|
||||||
rubyClass = {link='Structure'},
|
rubyClass = 'Structure',
|
||||||
rubyDefine = {link='Define' },
|
rubyDefine = 'Define',
|
||||||
rubyInterpolationDelimiter = {link='Delimiter'},
|
rubyInterpolationDelimiter = 'Delimiter',
|
||||||
|
|
||||||
--[[ 4.3.22. Rust ]]
|
--[[ 4.3.22. Rust ]]
|
||||||
rustKeyword = {link='Keyword' },
|
rustKeyword = 'Keyword',
|
||||||
rustModPath = {link='Include' },
|
rustModPath = 'Include',
|
||||||
rustScopeDecl = {link='Delimiter' },
|
rustScopeDecl = 'Delimiter',
|
||||||
rustTrait = {link='StorageClass'},
|
rustTrait = 'StorageClass',
|
||||||
|
|
||||||
--[[ 4.3.23. Scala ]]
|
--[[ 4.3.23. Scala ]]
|
||||||
scalaKeyword = {link='Keyword' },
|
scalaKeyword = 'Keyword',
|
||||||
scalaNameDefinition = {link='Identifier'},
|
scalaNameDefinition = 'Identifier',
|
||||||
|
|
||||||
--[[ 4.3.24. shell ]]
|
--[[ 4.3.24. shell ]]
|
||||||
shFunctionKey = {link='Function' },
|
shFunctionKey = 'Function',
|
||||||
shLoop = {link='Repeat' },
|
shLoop = 'Repeat',
|
||||||
shSet = {link='Statement'},
|
shSet = 'Statement',
|
||||||
shTestOpr = {link='Debug' },
|
shTestOpr = 'Debug',
|
||||||
|
|
||||||
--[[ 4.3.25. Solidity ]]
|
--[[ 4.3.25. Solidity ]]
|
||||||
solBuiltinType = {link='Type' },
|
solBuiltinType = 'Type',
|
||||||
solContract = {link='Typedef' },
|
solContract = 'Typedef',
|
||||||
solContractName = {link='Function'},
|
solContractName = 'Function',
|
||||||
|
|
||||||
--[[ 4.3.26. TOML ]]
|
--[[ 4.3.26. TOML ]]
|
||||||
tomlComment = {link='Comment' },
|
tomlComment = 'Comment',
|
||||||
tomlKey = {link='Label' },
|
tomlKey = 'Label',
|
||||||
tomlTable = {link='StorageClass'},
|
tomlTable = 'StorageClass',
|
||||||
|
|
||||||
--[[ 4.3.27. VimScript ]]
|
--[[ 4.3.27. VimScript ]]
|
||||||
vimCommand = {link='Keyword' },
|
vimFgBgAttrib = 'Constant',
|
||||||
vimFuncKey = {link='Function' },
|
vimHiCterm = 'Label',
|
||||||
vimGroup = {link='Type' },
|
vimHiCtermFgBg = 'vimHiCterm',
|
||||||
vimHiGroup = {link='Typedef' },
|
vimHiGroup = 'Typedef',
|
||||||
vimIsCommand = {link='vimCommand'},
|
vimHiGui = 'vimHiCterm',
|
||||||
vimLet = {link='Operator' },
|
vimHiGuiFgBg = 'vimHiGui',
|
||||||
vimMap = {link='vimCommand'},
|
vimHiKeyList = 'Operator',
|
||||||
vimNotFunc = {link='Statement'},
|
vimOption = 'Define',
|
||||||
|
vimSetEqual = 'Operator',
|
||||||
|
|
||||||
--[[ 4.3.28. XML ]]
|
--[[ 4.3.28. XML ]]
|
||||||
xmlAttrib = {link='Label' },
|
xmlAttrib = 'Label',
|
||||||
xmlEndTag = {link='Exception'},
|
xmlEndTag = 'Exception',
|
||||||
xmlEqual = {link='Operator' },
|
xmlEqual = 'Operator',
|
||||||
xmlTag = {link='Delimiter'},
|
xmlTag = 'Delimiter',
|
||||||
xmlTagName = {link='Define' },
|
xmlTagName = 'Define',
|
||||||
|
|
||||||
--[[ 4.4. Plugins
|
--[[ 4.4. Plugins
|
||||||
Everything in this section is OPTIONAL. Feel free to remove everything
|
Everything in this section is OPTIONAL. Feel free to remove everything
|
||||||
|
@ -533,30 +534,30 @@ local highlight_groups = {
|
||||||
missing.
|
missing.
|
||||||
]]
|
]]
|
||||||
--[[ 4.4.1. ALE ]]
|
--[[ 4.4.1. ALE ]]
|
||||||
ALEErrorSign = {link='ErrorMsg' },
|
ALEErrorSign = 'ErrorMsg',
|
||||||
ALEWarningSign = {link='WarningMsg'},
|
ALEWarningSign = 'WarningMsg',
|
||||||
|
|
||||||
--[[ 4.4.2. coc.nvim ]]
|
--[[ 4.4.2. coc.nvim ]]
|
||||||
CocErrorHighlight = {bg=NONE, fg=NONE, style={'undercurl', color='red' }},
|
CocErrorHighlight = {bg=NONE, fg=NONE, style={'undercurl', color='red' }},
|
||||||
CocErrorSign = {link='ALEErrorSign' },
|
CocHintHighlight = {bg=NONE, fg=NONE, style={'undercurl', color='magenta' }},
|
||||||
CocHintHighlight = {bg=NONE, fg=NONE, style={'undercurl', color='magenta' }},
|
CocInfoHighlight = {bg=NONE, fg=NONE, style={'undercurl', color='pink_light'}},
|
||||||
CocHintSign = {link='HintMsg' },
|
CocWarningHighlight = {bg=NONE, fg=NONE, style={'undercurl', color='orange' }},
|
||||||
CocInfoHighlight = {bg=NONE, fg=NONE, style={'undercurl', color='pink_light'}},
|
CocErrorSign = 'ALEErrorSign',
|
||||||
CocInfoSign = {link='InfoMsg' },
|
CocHintSign = 'HintMsg',
|
||||||
CocWarningHighlight = {bg=NONE, fg=NONE, style={'undercurl', color='orange' }},
|
CocInfoSign = 'InfoMsg',
|
||||||
CocWarningSign = {link='ALEWarningSign' },
|
CocWarningSign = 'ALEWarningSign',
|
||||||
|
|
||||||
--[[ 4.4.2. vim-jumpmotion / vim-easymotion ]]
|
--[[ 4.4.2. vim-jumpmotion / vim-easymotion ]]
|
||||||
EasyMotion = {link = 'IncSearch' },
|
EasyMotion = 'IncSearch',
|
||||||
JumpMotion = {link = 'EasyMotion'},
|
JumpMotion = 'EasyMotion',
|
||||||
|
|
||||||
--[[ 4.4.3. vim-markdown ]]
|
--[[ 4.4.3. vim-markdown ]]
|
||||||
htmlH1 = {link='markdownH1'},
|
htmlH1 = 'markdownH1',
|
||||||
htmlH2 = {link='markdownH2'},
|
htmlH2 = 'markdownH2',
|
||||||
htmlH3 = {link='markdownH3'},
|
htmlH3 = 'markdownH3',
|
||||||
htmlH4 = {link='markdownH4'},
|
htmlH4 = 'markdownH4',
|
||||||
htmlH5 = {link='markdownH5'},
|
htmlH5 = 'markdownH5',
|
||||||
htmlH6 = {link='markdownH6'},
|
htmlH6 = 'markdownH6',
|
||||||
|
|
||||||
--[[ 4.4.4. vim-gitgutter / vim-signify ]]
|
--[[ 4.4.4. vim-gitgutter / vim-signify ]]
|
||||||
GitGutterAdd = {bg=NONE, fg=green, style=NONE},
|
GitGutterAdd = {bg=NONE, fg=green, style=NONE},
|
||||||
|
@ -564,24 +565,24 @@ local highlight_groups = {
|
||||||
GitGutterDelete = {bg=NONE, fg=red, style=NONE},
|
GitGutterDelete = {bg=NONE, fg=red, style=NONE},
|
||||||
GitGutterChangeDelete = {bg=NONE, fg=orange, style=NONE},
|
GitGutterChangeDelete = {bg=NONE, fg=orange, style=NONE},
|
||||||
|
|
||||||
SignifySignAdd = {link='GitGutterAdd' },
|
SignifySignAdd = 'GitGutterAdd',
|
||||||
SignifySignChange = {link='GitGutterChange' },
|
SignifySignChange = 'GitGutterChange',
|
||||||
SignifySignDelete = {link='GitGutterDelete' },
|
SignifySignDelete = 'GitGutterDelete',
|
||||||
SignifySignChangeDelete = {link='GitGutterChangeDelete'},
|
SignifySignChangeDelete = 'GitGutterChangeDelete',
|
||||||
|
|
||||||
--[[ 4.4.5. vim-indent-guides ]]
|
--[[ 4.4.5. vim-indent-guides ]]
|
||||||
IndentGuidesOdd = {bg=gray_darker, fg=NONE, style=NONE},
|
IndentGuidesOdd = {bg=gray_darker, fg=NONE, style=NONE},
|
||||||
IndentGuidesEven = {bg=gray_dark, fg=NONE, style=NONE},
|
IndentGuidesEven = {bg=gray_dark, fg=NONE, style=NONE},
|
||||||
|
|
||||||
--[[ 4.4.7. NERDTree ]]
|
--[[ 4.4.7. NERDTree ]]
|
||||||
NERDTreeCWD = {link='Label' },
|
NERDTreeCWD = 'Label',
|
||||||
NERDTreeUp = {link='Operator' },
|
NERDTreeUp = 'Operator',
|
||||||
NERDTreeDir = {link='Directory' },
|
NERDTreeDir = 'Directory',
|
||||||
NERDTreeDirSlash = {link='Delimiter' },
|
NERDTreeDirSlash = 'Delimiter',
|
||||||
NERDTreeOpenable = {link='NERDTreeDir' },
|
NERDTreeOpenable = 'NERDTreeDir',
|
||||||
NERDTreeClosable = {link='NERDTreeOpenable'},
|
NERDTreeClosable = 'NERDTreeOpenable',
|
||||||
NERDTreeExecFile = {link='Function' },
|
NERDTreeExecFile = 'Function',
|
||||||
NERDTreeLinkTarget = {link='Tag' },
|
NERDTreeLinkTarget = 'Tag',
|
||||||
}
|
}
|
||||||
|
|
||||||
--[[ Step 5: Terminal Colors
|
--[[ Step 5: Terminal Colors
|
||||||
|
@ -706,6 +707,7 @@ require('highlite')(
|
||||||
terminal_ansi_colors
|
terminal_ansi_colors
|
||||||
)
|
)
|
||||||
|
|
||||||
EOF
|
-- Thanks to Romain Lafourcade (https://github.com/romainl) for the original template (romainl/vim-rnb).
|
||||||
|
-- vim: ft=lua
|
||||||
|
|
||||||
" Thanks to Romain Lafourcade (https://github.com/romainl) for the original template (romainl/vim-rnb).
|
EOF
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
--[[ NOTHING INSIDE THIS FILE NEEDS TO BE EDITED BY THE USER. ]]
|
--[[ NOTHING INSIDE THIS FILE NEEDS TO BE EDITED BY THE USER. ]]
|
||||||
|
local vim = vim
|
||||||
|
|
||||||
-- Clear the highlighting.
|
-- Clear the highlighting.
|
||||||
vim.cmd('hi clear')
|
vim.cmd('hi clear')
|
||||||
|
@ -39,13 +40,13 @@ end
|
||||||
-- Generate a `:highlight` command from a group and some attributes.
|
-- Generate a `:highlight` command from a group and some attributes.
|
||||||
local function highlight(highlight_group, attributes) -- {{{ †
|
local function highlight(highlight_group, attributes) -- {{{ †
|
||||||
local highlight_cmd = {'hi! ', highlight_group}
|
local highlight_cmd = {'hi! ', highlight_group}
|
||||||
local link = attributes.link
|
local link = (type(attributes) == 'string' and attributes)
|
||||||
|
or attributes.link
|
||||||
|
|
||||||
-- If the `highlight_group` is a link to another group.
|
if link then -- `highlight_group` is a link to another group.
|
||||||
if attributes.link then
|
|
||||||
highlight_cmd[3] = highlight_cmd[2] .. ' '
|
highlight_cmd[3] = highlight_cmd[2] .. ' '
|
||||||
highlight_cmd[2] = 'link '
|
highlight_cmd[2] = 'link '
|
||||||
highlight_cmd[4] = attributes.link
|
highlight_cmd[4] = link
|
||||||
else -- the `highlight_group` is uniquely defined.
|
else -- the `highlight_group` is uniquely defined.
|
||||||
local bg = attributes.bg
|
local bg = attributes.bg
|
||||||
local fg = attributes.fg
|
local fg = attributes.fg
|
||||||
|
|
Loading…
Reference in New Issue