This commit is contained in:
Michael Chris Lopez
2021-08-30 07:00:46 +08:00
parent 0be7227f32
commit eb5a1c84d2

View File

@@ -16,83 +16,83 @@ local theme = lush(function()
-- styling for that group (meaning they mostly get styled as Normal) -- styling for that group (meaning they mostly get styled as Normal)
-- or leave them commented to apply vims default colouring or linking. -- or leave them commented to apply vims default colouring or linking.
Normal { bg = c.sand, fg = c.stone }, -- normal text Normal { bg = c.sand, fg = c.stone }, -- normal text
Underlined { gui = "underline" }, -- (preferred) text that stands out, HTML links Underlined { gui = "underline" }, -- (preferred) text that stands out, HTML links
Bold { gui = "bold" }, Bold { gui = "bold" },
Italic { gui = "italic" }, Italic { gui = "italic" },
Error { fg = c.rose }, -- (preferred) any erroneous construct Error { fg = c.rose }, -- (preferred) any erroneous construct
ErrorMsg { Error }, -- error messages on the command line ErrorMsg { Error }, -- error messages on the command line
WarningMsg { fg = c.wood }, -- warning messages WarningMsg { fg = c.wood }, -- warning messages
Comment { fg = c.sand.da(38).de(28), gui = "italic" }, -- any comment Comment { fg = c.sand.da(38).de(28), gui = "italic" }, -- any comment
Conceal { fg = c.stone.li(20), gui = "bold,italic" }, -- placeholder characters substituted for concealed text (see 'conceallevel') Conceal { fg = c.stone.li(20), gui = "bold,italic" }, -- placeholder characters substituted for concealed text (see 'conceallevel')
Cursor { bg = c.stone, fg = c.sand.li(20) }, -- character under the cursor Cursor { bg = c.stone, fg = c.sand.li(20) }, -- character under the cursor
lCursor { Cursor, bg = Cursor.bg.lighten(20) }, -- the character under the cursor when |language-mapping| is used (see 'guicursor') lCursor { Cursor, bg = Cursor.bg.lighten(20) }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
-- CursorIM { }, -- like Cursor, but used when in IME mode |CursorIM| -- CursorIM { }, -- like Cursor, but used when in IME mode |CursorIM|
TermCursor { Cursor }, -- cursor in a focused terminal TermCursor { Cursor }, -- cursor in a focused terminal
TermCursorNC { lCursor }, -- cursor in an unfocused terminal TermCursorNC { lCursor }, -- cursor in an unfocused terminal
CursorLine { bg = c.sand.da(4) }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set. CursorLine { bg = c.sand.da(4) }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.
CursorColumn { CursorLine }, -- Screen-column at the cursor, when 'cursorcolumn' is set. CursorColumn { CursorLine }, -- Screen-column at the cursor, when 'cursorcolumn' is set.
ColorColumn { bg = c.wood.de(38).li(80) }, -- used for the columns set with 'colorcolumn' ColorColumn { bg = c.wood.de(38).li(80) }, -- used for the columns set with 'colorcolumn'
DiffAdd { bg = c.leaf.de(77).li(82) }, -- diff mode: Added line |diff.txt| DiffAdd { bg = c.leaf.de(77).li(82) }, -- diff mode: Added line |diff.txt|
DiffChange { bg = c.water.de(22).li(76) }, -- diff mode: Changed line |diff.txt| DiffChange { bg = c.water.de(22).li(76) }, -- diff mode: Changed line |diff.txt|
DiffDelete { bg = c.rose.de(32).li(74) }, -- diff mode: Deleted line |diff.txt| DiffDelete { bg = c.rose.de(32).li(74) }, -- diff mode: Deleted line |diff.txt|
DiffText { bg = c.water.de(24).li(64), fg = c.stone }, -- diff mode: Changed text within a changed line |diff.txt| DiffText { bg = c.water.de(24).li(64), fg = c.stone }, -- diff mode: Changed text within a changed line |diff.txt|
LineNr { fg = c.sand.da(36) }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set. LineNr { fg = c.sand.da(36) }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
SignColumn { LineNr }, -- column where |signs| are displayed SignColumn { LineNr }, -- column where |signs| are displayed
FoldColumn { LineNr, gui = "bold" }, -- 'foldcolumn' FoldColumn { LineNr, gui = "bold" }, -- 'foldcolumn'
Folded { bg = c.sand.da(16), fg = c.sand.da(64) }, -- line used for closed folds Folded { bg = c.sand.da(16), fg = c.sand.da(64) }, -- line used for closed folds
CursorLineNr { LineNr, fg = c.stone, gui = "bold" }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line. CursorLineNr { LineNr, fg = c.stone, gui = "bold" }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
-- ModeMsg { }, -- 'showmode' message (e.g., "-- INSERT -- ") -- ModeMsg { }, -- 'showmode' message (e.g., "-- INSERT -- ")
-- MsgArea { }, -- Area for messages and cmdline -- MsgArea { }, -- Area for messages and cmdline
-- MsgSeparator { }, -- Separator for scrolled messages, `msgsep` flag of 'display' -- MsgSeparator { }, -- Separator for scrolled messages, `msgsep` flag of 'display'
MoreMsg { fg = c.leaf, gui = "bold" }, -- |more-prompt| MoreMsg { fg = c.leaf, gui = "bold" }, -- |more-prompt|
NormalFloat { bg = c.sand.da(6) }, -- Normal text in floating windows. NormalFloat { bg = c.sand.da(6) }, -- Normal text in floating windows.
FloatBorder { fg = c.sand.da(50) }, -- Normal text in floating windows. FloatBorder { fg = c.sand.da(50) }, -- Normal text in floating windows.
-- NormalNC { }, -- normal text in non-current windows -- NormalNC { }, -- normal text in non-current windows
Pmenu { bg = c.sand.da(10) }, -- Popup menu: normal item. Pmenu { bg = c.sand.da(10) }, -- Popup menu: normal item.
PmenuSel { bg = c.sand.da(20) }, -- Popup menu: selected item. PmenuSel { bg = c.sand.da(20) }, -- Popup menu: selected item.
PmenuSbar { bg = c.sand.da(28) }, -- Popup menu: scrollbar. PmenuSbar { bg = c.sand.da(28) }, -- Popup menu: scrollbar.
PmenuThumb { bg = c.white }, -- Popup menu: Thumb of the scrollbar. PmenuThumb { bg = c.white }, -- Popup menu: Thumb of the scrollbar.
Search { bg = c.blossom.de(10).lighten(54), fg = c.stone }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out. Search { bg = c.blossom.de(10).lighten(54), fg = c.stone }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
IncSearch { bg = c.blossom, fg = c.sand, gui = "bold" }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c" IncSearch { bg = c.blossom, fg = c.sand, gui = "bold" }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
-- Substitute { }, -- |:substitute| replacement text highlighting -- Substitute { }, -- |:substitute| replacement text highlighting
MatchParen { Search }, -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt| MatchParen { Search }, -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
-- QuickFixLine { }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there. -- QuickFixLine { }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
SpellBad { fg = Error.fg.de(30), gui = "undercurl", guisp = Error.fg }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise. SpellBad { fg = Error.fg.de(30), gui = "undercurl", guisp = Error.fg }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
SpellCap { SpellBad, guisp = Error.fg.li(10) }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise. SpellCap { SpellBad, guisp = Error.fg.li(10) }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
SpellLocal { SpellCap }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise. SpellLocal { SpellCap }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
SpellRare { SpellBad, guisp = c.wood }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise. SpellRare { SpellBad, guisp = c.wood }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
StatusLine { bg = c.sand.da(14), fg = c.stone }, -- status line of current window StatusLine { bg = c.sand.da(14), fg = c.stone }, -- status line of current window
StatusLineNC { bg = c.sand.da(10), fg = c.stone.li(28) }, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window. StatusLineNC { bg = c.sand.da(10), fg = c.stone.li(28) }, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window.
TabLine { StatusLine, gui = "italic" }, -- tab pages line, not active tab page label TabLine { StatusLine, gui = "italic" }, -- tab pages line, not active tab page label
TabLineFill { StatusLineNC }, -- tab pages line, where there are no labels TabLineFill { StatusLineNC }, -- tab pages line, where there are no labels
TabLineSel { gui = "bold" }, -- tab pages line, active tab page label TabLineSel { gui = "bold" }, -- tab pages line, active tab page label
VertSplit { fg = c.white }, -- the column separating vertically split windows VertSplit { fg = c.white }, -- the column separating vertically split windows
Visual { bg = c.stone.li(84) }, -- Visual mode selection Visual { bg = c.stone.li(84) }, -- Visual mode selection
-- VisualNOS { }, -- Visual mode selection when vim is "Not Owning the Selection". -- VisualNOS { }, -- Visual mode selection when vim is "Not Owning the Selection".
NonText { fg = c.sand.da(22) }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|. NonText { fg = c.sand.da(22) }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.
SpecialKey { NonText, gui = "italic" }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace| SpecialKey { NonText, gui = "italic" }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
Whitespace { NonText }, -- "nbsp", "space", "tab" and "trail" in 'listchars' Whitespace { NonText }, -- "nbsp", "space", "tab" and "trail" in 'listchars'
EndOfBuffer { NonText }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|. EndOfBuffer { NonText }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
WildMenu { bg = c.blossom, fg = c.sand }, -- current match in 'wildmenu' completion WildMenu { bg = c.blossom, fg = c.sand }, -- current match in 'wildmenu' completion
Directory { gui = "bold" }, -- directory names (and other special names in listings) Directory { gui = "bold" }, -- directory names (and other special names in listings)
Question { MoreMsg }, -- |hit-enter| prompt and yes/no questions Question { MoreMsg }, -- |hit-enter| prompt and yes/no questions
Title { gui = "bold" }, -- titles for output from ":set all", ":autocmd" etc. Title { gui = "bold" }, -- titles for output from ":set all", ":autocmd" etc.
-- These groups are not listed as default vim groups, -- These groups are not listed as default vim groups,
@@ -101,81 +101,81 @@ local theme = lush(function()
-- default, -- default,
-- Uncomment and edit if you want more specific syntax highlighting. -- Uncomment and edit if you want more specific syntax highlighting.
Constant { fg = c.stone.li(24), gui = "italic" }, -- (preferred) any constant Constant { fg = c.stone.li(24), gui = "italic" }, -- (preferred) any constant
-- String { }, -- a string constant: "this is a string" -- String { }, -- a string constant: "this is a string"
-- Character { }, -- a character constant: 'c', '\n' -- Character { }, -- a character constant: 'c', '\n'
-- Number { }, -- a number constant: 234, 0xff -- Number { }, -- a number constant: 234, 0xff
-- Boolean { }, -- a boolean constant: TRUE, false -- Boolean { }, -- a boolean constant: TRUE, false
-- Float { }, -- a floating point constant: 2.3e10 -- Float { }, -- a floating point constant: 2.3e10
Identifier { fg = c.stone.li(16) }, -- (preferred) any variable name Identifier { fg = c.stone.li(16) }, -- (preferred) any variable name
Function { fg = c.stone }, -- function name (also: methods for classes) Function { fg = c.stone }, -- function name (also: methods for classes)
Statement { fg = c.stone, gui = "bold" }, -- (preferred) any statement Statement { fg = c.stone, gui = "bold" }, -- (preferred) any statement
-- Conditional { }, -- if, then, else, endif, switch, etc. -- Conditional { }, -- if, then, else, endif, switch, etc.
-- Repeat { }, -- for, do, while, etc. -- Repeat { }, -- for, do, while, etc.
-- Label { }, -- case, default, etc. -- Label { }, -- case, default, etc.
-- Operator { }, -- "sizeof", "+", "*", etc. -- Operator { }, -- "sizeof", "+", "*", etc.
-- Keyword { }, -- any other keyword -- Keyword { }, -- any other keyword
-- Exception { }, -- try, catch, throw -- Exception { }, -- try, catch, throw
PreProc { Statement }, -- (preferred) generic Preprocessor PreProc { Statement }, -- (preferred) generic Preprocessor
-- Include { }, -- preprocessor #include -- Include { }, -- preprocessor #include
-- Define { }, -- preprocessor #define -- Define { }, -- preprocessor #define
-- Macro { }, -- same as Define -- Macro { }, -- same as Define
-- PreCondit { }, -- preprocessor #if, #else, #endif, etc. -- PreCondit { }, -- preprocessor #if, #else, #endif, etc.
Type { fg = c.sand.da(62) }, -- (preferred) int, long, char, etc. Type { fg = c.sand.da(62) }, -- (preferred) int, long, char, etc.
-- StorageClass { }, -- static, register, volatile, etc. -- StorageClass { }, -- static, register, volatile, etc.
-- Structure { }, -- struct, union, enum, etc. -- Structure { }, -- struct, union, enum, etc.
-- Typedef { }, -- A typedef -- Typedef { }, -- A typedef
Special { fg = c.stone.li(24), gui = "bold" }, -- (preferred) any special symbol Special { fg = c.stone.li(24), gui = "bold" }, -- (preferred) any special symbol
-- SpecialChar { }, -- special character in a constant -- SpecialChar { }, -- special character in a constant
-- Tag { }, -- you can use CTRL-] on this -- Tag { }, -- you can use CTRL-] on this
Delimiter { fg = c.sand.da(42) }, -- character that needs attention Delimiter { fg = c.sand.da(42) }, -- character that needs attention
SpecialComment { Comment, gui = "bold" }, -- special things inside a comment SpecialComment { Comment, gui = "bold" }, -- special things inside a comment
-- Debug { }, -- debugging statements -- Debug { }, -- debugging statements
-- ("Ignore", below, may be invisible...) -- ("Ignore", below, may be invisible...)
-- Ignore { }, -- (preferred) left blank, hidden |hl-Ignore| -- Ignore { }, -- (preferred) left blank, hidden |hl-Ignore|
Todo { gui = "bold,underline" }, -- (preferred) anything that needs extra attention; mostly the keywords TODO FIXME and XXX Todo { gui = "bold,underline" }, -- (preferred) anything that needs extra attention; mostly the keywords TODO FIXME and XXX
-- These groups are for the native LSP client. Some other LSP clients may -- These groups are for the native LSP client. Some other LSP clients may
-- use these groups, or use their own. Consult your LSP client's -- use these groups, or use their own. Consult your LSP client's
-- documentation. -- documentation.
LspReferenceText { ColorColumn }, -- used for highlighting "text" references LspReferenceText { ColorColumn }, -- used for highlighting "text" references
LspReferenceRead { ColorColumn }, -- used for highlighting "read" references LspReferenceRead { ColorColumn }, -- used for highlighting "read" references
LspReferenceWrite { ColorColumn }, -- used for highlighting "write" references LspReferenceWrite { ColorColumn }, -- used for highlighting "write" references
LspDiagnosticsDefaultError { Error }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) LspDiagnosticsDefaultError { Error }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultWarning { WarningMsg }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) LspDiagnosticsDefaultWarning { WarningMsg }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultInformation { fg = c.water }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) LspDiagnosticsDefaultInformation { fg = c.water }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultHint { fg = c.blossom }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) LspDiagnosticsDefaultHint { fg = c.blossom }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsVirtualTextError { LspDiagnosticsDefaultError, bg = c.rose.abs_de(48).li(82) }, -- Used for "Error" diagnostic virtual text LspDiagnosticsVirtualTextError { LspDiagnosticsDefaultError, bg = c.rose.abs_de(48).li(82) }, -- Used for "Error" diagnostic virtual text
LspDiagnosticsVirtualTextWarning { LspDiagnosticsDefaultWarning, bg = c.wood.de(58).li(86) }, -- Used for "Warning" diagnostic virtual text LspDiagnosticsVirtualTextWarning { LspDiagnosticsDefaultWarning, bg = c.wood.de(58).li(86) }, -- Used for "Warning" diagnostic virtual text
-- LspDiagnosticsVirtualTextInformation { }, -- Used for "Information" diagnostic virtual text -- LspDiagnosticsVirtualTextInformation { }, -- Used for "Information" diagnostic virtual text
-- LspDiagnosticsVirtualTextHint { }, -- Used for "Hint" diagnostic virtual text -- LspDiagnosticsVirtualTextHint { }, -- Used for "Hint" diagnostic virtual text
LspDiagnosticsUnderlineError { LspDiagnosticsDefaultError, gui = "undercurl" }, -- Used to underline "Error" diagnostics LspDiagnosticsUnderlineError { LspDiagnosticsDefaultError, gui = "undercurl" }, -- Used to underline "Error" diagnostics
LspDiagnosticsUnderlineWarning { LspDiagnosticsDefaultWarning, gui = "undercurl" }, -- Used to underline "Warning" diagnostics LspDiagnosticsUnderlineWarning { LspDiagnosticsDefaultWarning, gui = "undercurl" }, -- Used to underline "Warning" diagnostics
LspDiagnosticsUnderlineInformation { LspDiagnosticsDefaultInformation, gui = "undercurl" }, -- Used to underline "Information" diagnostics LspDiagnosticsUnderlineInformation { LspDiagnosticsDefaultInformation, gui = "undercurl" }, -- Used to underline "Information" diagnostics
LspDiagnosticsUnderlineHint { LspDiagnosticsDefaultHint, gui = "undercurl" }, -- Used to underline "Hint" diagnostics LspDiagnosticsUnderlineHint { LspDiagnosticsDefaultHint, gui = "undercurl" }, -- Used to underline "Hint" diagnostics
-- LspDiagnosticsFloatingError { }, -- Used to color "Error" diagnostic messages in diagnostics float -- LspDiagnosticsFloatingError { }, -- Used to color "Error" diagnostic messages in diagnostics float
-- LspDiagnosticsFloatingWarning { }, -- Used to color "Warning" diagnostic messages in diagnostics float -- LspDiagnosticsFloatingWarning { }, -- Used to color "Warning" diagnostic messages in diagnostics float
-- LspDiagnosticsFloatingInformation { }, -- Used to color "Information" diagnostic messages in diagnostics float -- LspDiagnosticsFloatingInformation { }, -- Used to color "Information" diagnostic messages in diagnostics float
-- LspDiagnosticsFloatingHint { }, -- Used to color "Hint" diagnostic messages in diagnostics float -- LspDiagnosticsFloatingHint { }, -- Used to color "Hint" diagnostic messages in diagnostics float
-- LspDiagnosticsSignError { }, -- Used for "Error" signs in sign column -- LspDiagnosticsSignError { }, -- Used for "Error" signs in sign column
-- LspDiagnosticsSignWarning { }, -- Used for "Warning" signs in sign column -- LspDiagnosticsSignWarning { }, -- Used for "Warning" signs in sign column
-- LspDiagnosticsSignInformation { }, -- Used for "Information" signs in sign column -- LspDiagnosticsSignInformation { }, -- Used for "Information" signs in sign column
-- LspDiagnosticsSignHint { }, -- Used for "Hint" signs in sign column -- LspDiagnosticsSignHint { }, -- Used for "Hint" signs in sign column
LspCodeLens { LineNr }, LspCodeLens { LineNr },
-- These groups are for the neovim tree-sitter highlights. -- These groups are for the neovim tree-sitter highlights.
-- As of writing, tree-sitter support is a WIP, group names may change. -- As of writing, tree-sitter support is a WIP, group names may change.
@@ -183,112 +183,112 @@ local theme = lush(function()
-- TSError -> Error for example, so you do not have to define these unless -- TSError -> Error for example, so you do not have to define these unless
-- you explicitly want to support Treesitter's improved syntax awareness. -- you explicitly want to support Treesitter's improved syntax awareness.
-- TSAnnotation { }; -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information. -- TSAnnotation { }; -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information.
-- TSAttribute { }; -- (unstable) TODO: docs -- TSAttribute { }; -- (unstable) TODO: docs
-- TSBoolean { }; -- For booleans. -- TSBoolean { }; -- For booleans.
-- TSCharacter { }; -- For characters. -- TSCharacter { }; -- For characters.
-- TSComment { }; -- For comment blocks. -- TSComment { }; -- For comment blocks.
-- TSConstructor { }; -- For constructor calls and definitions: ` { }` in Lua, and Java constructors. -- TSConstructor { }; -- For constructor calls and definitions: ` { }` in Lua, and Java constructors.
-- TSConditional { }; -- For keywords related to conditionnals. -- TSConditional { }; -- For keywords related to conditionnals.
-- TSConstant { }; -- For constants -- TSConstant { }; -- For constants
-- TSConstBuiltin { }; -- For constant that are built in the language: `nil` in Lua. -- TSConstBuiltin { }; -- For constant that are built in the language: `nil` in Lua.
-- TSConstMacro { }; -- For constants that are defined by macros: `NULL` in C. -- TSConstMacro { }; -- For constants that are defined by macros: `NULL` in C.
-- TSError { }; -- For syntax/parser errors. -- TSError { }; -- For syntax/parser errors.
-- TSException { }; -- For exception related keywords. -- TSException { }; -- For exception related keywords.
-- TSField { }; -- For fields. -- TSField { }; -- For fields.
-- TSFloat { }; -- For floats. -- TSFloat { }; -- For floats.
-- TSFunction { }; -- For function (calls and definitions). -- TSFunction { }; -- For function (calls and definitions).
-- TSFuncBuiltin { }; -- For builtin functions: `table.insert` in Lua. -- TSFuncBuiltin { }; -- For builtin functions: `table.insert` in Lua.
-- TSFuncMacro { }; -- For macro defined fuctions (calls and definitions): each `macro_rules` in Rust. -- TSFuncMacro { }; -- For macro defined fuctions (calls and definitions): each `macro_rules` in Rust.
-- TSInclude { }; -- For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua. -- TSInclude { }; -- For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua.
-- TSKeyword { }; -- For keywords that don't fall in previous categories. -- TSKeyword { }; -- For keywords that don't fall in previous categories.
-- TSKeywordFunction { }; -- For keywords used to define a fuction. -- TSKeywordFunction { }; -- For keywords used to define a fuction.
-- TSLabel { }; -- For labels: `label:` in C and `:label:` in Lua. -- TSLabel { }; -- For labels: `label:` in C and `:label:` in Lua.
-- TSMethod { }; -- For method calls and definitions. -- TSMethod { }; -- For method calls and definitions.
-- TSNamespace { }; -- For identifiers referring to modules and namespaces. -- TSNamespace { }; -- For identifiers referring to modules and namespaces.
-- TSNone { }; -- TODO: docs -- TSNone { }; -- TODO: docs
-- TSNumber { }; -- For all numbers -- TSNumber { }; -- For all numbers
-- TSOperator { }; -- For any operator: `+`, but also `->` and `*` in C. -- TSOperator { }; -- For any operator: `+`, but also `->` and `*` in C.
-- TSParameter { }; -- For parameters of a function. -- TSParameter { }; -- For parameters of a function.
-- TSParameterReference { }; -- For references to parameters of a function. -- TSParameterReference { }; -- For references to parameters of a function.
-- TSProperty { }; -- Same as `TSField`. -- TSProperty { }; -- Same as `TSField`.
-- TSPunctDelimiter { }; -- For delimiters ie: `.` -- TSPunctDelimiter { }; -- For delimiters ie: `.`
-- TSPunctBracket { }; -- For brackets and parens. -- TSPunctBracket { }; -- For brackets and parens.
-- TSPunctSpecial { }; -- For special punctutation that does not fall in the catagories before. -- TSPunctSpecial { }; -- For special punctutation that does not fall in the catagories before.
-- TSRepeat { }; -- For keywords related to loops. -- TSRepeat { }; -- For keywords related to loops.
-- TSString { }; -- For strings. -- TSString { }; -- For strings.
-- TSStringRegex { }; -- For regexes. -- TSStringRegex { }; -- For regexes.
-- TSStringEscape { }; -- For escape characters within a string. -- TSStringEscape { }; -- For escape characters within a string.
-- TSSymbol { }; -- For identifiers referring to symbols or atoms. -- TSSymbol { }; -- For identifiers referring to symbols or atoms.
-- TSType { }; -- For types. -- TSType { }; -- For types.
-- TSTypeBuiltin { }; -- For builtin types. -- TSTypeBuiltin { }; -- For builtin types.
TSVariable { Identifier }, -- Any variable name that does not have another highlight. TSVariable { Identifier }, -- Any variable name that does not have another highlight.
-- TSVariableBuiltin { }; -- Variable names that are defined by the languages, like `this` or `self`. -- TSVariableBuiltin { }; -- Variable names that are defined by the languages, like `this` or `self`.
TSTag { fg = c.stone.li(20), gui = "bold" }, -- Tags like html tag names. TSTag { fg = c.stone.li(20), gui = "bold" }, -- Tags like html tag names.
-- TSTagDelimiter { }; -- Tag delimiter like `<` `>` `/` -- TSTagDelimiter { }; -- Tag delimiter like `<` `>` `/`
-- TSText { }; -- For strings considered text in a markup language. -- TSText { }; -- For strings considered text in a markup language.
-- TSEmphasis { }; -- For text to be represented with emphasis. -- TSEmphasis { }; -- For text to be represented with emphasis.
-- TSUnderline { }; -- For text to be represented with an underline. -- TSUnderline { }; -- For text to be represented with an underline.
-- TSStrike { }; -- For strikethrough text. -- TSStrike { }; -- For strikethrough text.
-- TSTitle { }; -- Text that is part of a title. -- TSTitle { }; -- Text that is part of a title.
-- TSLiteral { }; -- Literal text. -- TSLiteral { }; -- Literal text.
-- TSURI { }; -- Any URI like a link or email. -- TSURI { }; -- Any URI like a link or email.
-- Syntax -- Syntax
diffAdded { fg = c.leaf }, diffAdded { fg = c.leaf },
diffRemoved { fg = c.rose }, diffRemoved { fg = c.rose },
diffChanged { fg = c.water }, diffChanged { fg = c.water },
diffOldFile { fg = c.rose, gui = "italic" }, diffOldFile { fg = c.rose, gui = "italic" },
diffNewFile { fg = c.leaf, gui = "italic" }, diffNewFile { fg = c.leaf, gui = "italic" },
diffFile { fg = c.wood, gui = "bold" }, diffFile { fg = c.wood, gui = "bold" },
diffLine { fg = c.blossom, gui = "bold" }, diffLine { fg = c.blossom, gui = "bold" },
diffIndexLine { fg = c.wood }, diffIndexLine { fg = c.wood },
-- Other plugins -- Other plugins
GitSignsAdd { fg = c.leaf }, GitSignsAdd { fg = c.leaf },
GitSignsChange { fg = c.water }, GitSignsChange { fg = c.water },
GitSignsDelete { fg = c.rose }, GitSignsDelete { fg = c.rose },
IndentBlanklineChar { fg = c.sand.da(12).de(20) }, IndentBlanklineChar { fg = c.sand.da(12).de(20) },
TelescopeSelection { CursorLine }, TelescopeSelection { CursorLine },
TelescopeSelectionCaret { TelescopeSelection, fg = c.rose }, TelescopeSelectionCaret { TelescopeSelection, fg = c.rose },
TelescopeMatching { fg = c.blossom, gui = "bold" }, TelescopeMatching { fg = c.blossom, gui = "bold" },
TelescopeBorder { FloatBorder }, TelescopeBorder { FloatBorder },
Sneak { Search }, Sneak { Search },
SneakLabel { WildMenu }, SneakLabel { WildMenu },
SneakLabelMask { bg = c.blossom, fg = c.blossom }, SneakLabelMask { bg = c.blossom, fg = c.blossom },
BufferCurrent { TabLineSel }, BufferCurrent { TabLineSel },
BufferVisible { fg = StatusLineNC.fg }, BufferVisible { fg = StatusLineNC.fg },
BufferVisibleSign { fg = StatusLineNC.fg }, BufferVisibleSign { fg = StatusLineNC.fg },
BufferVisibleIndex { fg = StatusLineNC.fg }, BufferVisibleIndex { fg = StatusLineNC.fg },
CocErrorSign { LspDiagnosticsDefaultError }, CocErrorSign { LspDiagnosticsDefaultError },
CocWarningSign { LspDiagnosticsDefaultWarning }, CocWarningSign { LspDiagnosticsDefaultWarning },
CocInfoSign { LspDiagnosticsDefaultInformation }, CocInfoSign { LspDiagnosticsDefaultInformation },
CocHintSign { LspDiagnosticsDefaultHint }, CocHintSign { LspDiagnosticsDefaultHint },
CocErrorHighlight { CocErrorSign, gui = "underline" }, CocErrorHighlight { CocErrorSign, gui = "underline" },
CocWarningHighlight { CocWarningSign, gui = "underline" }, CocWarningHighlight { CocWarningSign, gui = "underline" },
CocInfoHighlight { CocInfoSign, gui = "underline" }, CocInfoHighlight { CocInfoSign, gui = "underline" },
CocHintHighlight { CocHintSign, gui = "underline" }, CocHintHighlight { CocHintSign, gui = "underline" },
CocErrorVirtualText { LspDiagnosticsVirtualTextError }, CocErrorVirtualText { LspDiagnosticsVirtualTextError },
CocWarningVitualText { LspDiagnosticsVirtualTextWarning }, CocWarningVitualText { LspDiagnosticsVirtualTextWarning },
CocSelectedText { SpellBad }, CocSelectedText { SpellBad },
CocCodeLens { LineNr }, CocCodeLens { LineNr },
CocMarkdownLink { fg = c.sky, gui = "underline" }, CocMarkdownLink { fg = c.sky, gui = "underline" },
NeogitNotificationError { LspDiagnosticsDefaultError }, NeogitNotificationError { LspDiagnosticsDefaultError },
NeogitNotificationWarning { LspDiagnosticsDefaultWarning }, NeogitNotificationWarning { LspDiagnosticsDefaultWarning },
NeogitNotificationInfo { LspDiagnosticsDefaultInformation }, NeogitNotificationInfo { LspDiagnosticsDefaultInformation },
NeogitDiffContextHighlight { CursorLine }, NeogitDiffContextHighlight { CursorLine },
NeogitDiffDeleteHighlight { DiffDelete }, NeogitDiffDeleteHighlight { DiffDelete },
NeogitDiffAddHighlight { DiffAdd }, NeogitDiffAddHighlight { DiffAdd },
NeogitHunkHeader { LineNr }, NeogitHunkHeader { LineNr },
NeogitHunkHeaderHighlight { CursorLine, fg = c.stone, gui = "bold" }, NeogitHunkHeaderHighlight { CursorLine, fg = c.stone, gui = "bold" },
} }
end) end)
-- stylua: ignore end -- stylua: ignore end