This commit is contained in:
Michael Chris Lopez
2021-08-22 16:24:52 +08:00
parent 5dc4ed1612
commit 48f4429b57

View File

@@ -67,71 +67,72 @@ 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 = sand, fg = stone.lighten(2).saturate(80) }, -- normal text -- stylua: ignore start
Normal { bg = sand, fg = stone.li(2).sa(80) }, -- 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 = rose }, -- (preferred) any erroneous construct Error { fg = rose }, -- (preferred) any erroneous construct
ErrorMsg { Error }, -- error messages on the command line ErrorMsg { Error }, -- error messages on the command line
WarningMsg { fg = wood }, -- warning messages WarningMsg { fg = wood }, -- warning messages
Comment { fg = sand.darken(40).desaturate(30), gui = "italic" }, -- any comment Comment { fg = sand.da(40).de(30), gui = "italic" }, -- any comment
ColorColumn { bg = sand.darken(20) }, -- used for the columns set with 'colorcolumn' ColorColumn { bg = sand.da(20) }, -- used for the columns set with 'colorcolumn'
-- Conceal { }, -- placeholder characters substituted for concealed text (see 'conceallevel') -- Conceal { }, -- placeholder characters substituted for concealed text (see 'conceallevel')
-- Cursor { bg = 'blue' }, -- character under the cursor -- Cursor { }, -- character under the cursor
-- lCursor { }, -- the character under the cursor when |language-mapping| is used (see 'guicursor') -- lCursor { }, -- 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|
CursorLine { bg = sand.darken(4) }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set. CursorLine { bg = 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.
Directory { gui = "bold" }, -- directory names (and other special names in listings) Directory { gui = "bold" }, -- directory names (and other special names in listings)
DiffAdd { bg = leaf, fg = sand }, -- diff mode: Added line |diff.txt| DiffAdd { bg = leaf, fg = sand }, -- diff mode: Added line |diff.txt|
DiffChange { bg = water.lighten(16), fg = sand.lighten(20) }, -- diff mode: Changed line |diff.txt| DiffChange { bg = water.li(16), fg = sand.li(20) }, -- diff mode: Changed line |diff.txt|
DiffDelete { bg = rose, fg = sand.lighten(20) }, -- diff mode: Deleted line |diff.txt| DiffDelete { bg = rose, fg = sand.li(20) }, -- diff mode: Deleted line |diff.txt|
DiffText { bg = water, fg = sand.lighten(20) }, -- diff mode: Changed text within a changed line |diff.txt| DiffText { bg = water, fg = sand.li(20) }, -- diff mode: Changed text within a changed line |diff.txt|
-- TermCursor { }, -- cursor in a focused terminal -- TermCursor { }, -- cursor in a focused terminal
-- TermCursorNC { }, -- cursor in an unfocused terminal -- TermCursorNC { }, -- cursor in an unfocused terminal
VertSplit { bg = sand.darken(18) }, -- the column separating vertically split windows VertSplit { bg = sand.da(18) }, -- the column separating vertically split windows
LineNr { bg = sand.darken(6), fg = stone.lighten(42) }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set. LineNr { bg = sand.da(6), fg = stone.li(42) }, -- 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 = sand.darken(20), fg = sand.darken(60) }, -- line used for closed folds Folded { bg = sand.da(20), fg = sand.da(60) }, -- line used for closed folds
CursorLineNr { LineNr, fg = stone.darken(50), gui = "bold" }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line. CursorLineNr { LineNr, fg = stone.da(50), gui = "bold" }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
-- IncSearch { }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c" IncSearch { bg = orchid, fg = sand }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
-- Substitute { }, -- |:substitute| replacement text highlighting -- Substitute { }, -- |:substitute| replacement text highlighting
MatchParen {}, -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt| MatchParen { }, -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
-- 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 { }, -- |more-prompt| -- MoreMsg { }, -- |more-prompt|
NormalFloat { bg = sand.darken(8) }, -- Normal text in floating windows. NormalFloat { bg = sand.da(8) }, -- Normal text in floating windows.
FloatBorder { fg = sand.darken(20) }, -- Normal text in floating windows. FloatBorder { fg = sand.da(20) }, -- Normal text in floating windows.
-- NormalNC { }, -- normal text in non-current windows -- NormalNC { }, -- normal text in non-current windows
Pmenu { bg = sand.darken(10) }, -- Popup menu: normal item. Pmenu { bg = sand.da(10) }, -- Popup menu: normal item.
PmenuSel { bg = sand.darken(20) }, -- Popup menu: selected item. PmenuSel { bg = sand.da(20) }, -- Popup menu: selected item.
PmenuSbar { bg = sand.darken(30) }, -- Popup menu: scrollbar. PmenuSbar { bg = sand.da(30) }, -- Popup menu: scrollbar.
PmenuThumb { bg = sand.abs_lighten(30) }, -- Popup menu: Thumb of the scrollbar. PmenuThumb { bg = sand.abs_lighten(30) }, -- Popup menu: Thumb of the scrollbar.
-- Question { }, -- |hit-enter| prompt and yes/no questions Question { fg = leaf, gui = "bold" }, -- |hit-enter| prompt and yes/no questions
-- 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.
-- Search { }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out. Search { bg = water, fg = sand }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
-- SpecialKey { }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace| SpellBad { fg = Error.fg.de(40), gui = "undercurl", guisp = Error.fg }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
SpellBad { fg = Error.fg.desaturate(40), 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.lighten(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 = 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 = wood }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise. StatusLine { bg = sand.da(20) }, -- status line of current window
StatusLine { bg = sand.darken(20) }, -- status line of current window StatusLineNC { bg = sand.da(10), fg = stone.li(30) }, -- 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 = sand.darken(10), fg = stone.lighten(30) }, -- 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 { }, -- tab pages line, not active tab page label -- TabLine { }, -- tab pages line, not active tab page label
-- TabLineFill { }, -- tab pages line, where there are no labels -- TabLineFill { }, -- tab pages line, where there are no labels
-- TabLineSel { }, -- tab pages line, active tab page label -- TabLineSel { }, -- tab pages line, active tab page label
Title { Bold }, -- titles for output from ":set all", ":autocmd" etc. Title { Bold }, -- titles for output from ":set all", ":autocmd" etc.
Visual { bg = stone.lighten(40), fg = sand }, -- Visual mode selection Visual { bg = stone.li(40), fg = sand }, -- 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 = sand.darken(20) }, -- '@' 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 = sand.da(20) }, -- '@' 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|.
Whitespace { NonText }, -- "nbsp", "space", "tab" and "trail" in 'listchars' SpecialKey { NonText, gui = "italic" }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
EndOfBuffer { NonText }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|. Whitespace { NonText }, -- "nbsp", "space", "tab" and "trail" in 'listchars'
-- WildMenu { }, -- current match in 'wildmenu' completion EndOfBuffer { NonText }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
WildMenu { IncSearch }, -- current match in 'wildmenu' completion
-- These groups are not listed as default vim groups, -- These groups are not listed as default vim groups,
-- but they are defacto standard group names for syntax highlighting. -- but they are defacto standard group names for syntax highlighting.
@@ -139,46 +140,46 @@ 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 = stone.lighten(30) }, -- (preferred) any constant Constant { fg = stone.li(30) }, -- (preferred) any constant
String { fg = Constant.fg, gui = "italic" }, -- a string constant: "this is a string" String { fg = Constant.fg, gui = "italic" }, -- 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 = stone.lighten(20) }, -- (preferred) any variable name Identifier { fg = stone.li(20) }, -- (preferred) any variable name
Function { fg = stone.lighten(20) }, -- function name (also: methods for classes) Function { fg = stone.li(20) }, -- function name (also: methods for classes)
Statement { gui = "bold" }, -- (preferred) any statement Statement { 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 = sand.darken(60) }, -- (preferred) int, long, char, etc. Type { fg = sand.da(60) }, -- (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 = stone.lighten(20) }, -- (preferred) any special symbol Special { fg = stone.li(20) }, -- (preferred) any special symbol
SpecialChar { Special }, -- special character in a constant SpecialChar { Special }, -- special character in a constant
Tag { fg = stone.darken(20) }, -- you can use CTRL-] on this Tag { fg = stone.da(20) }, -- you can use CTRL-] on this
Delimiter { fg = sand.darken(40) }, -- character that needs attention Delimiter { fg = sand.da(40) }, -- character that needs attention
SpecialComment { Comment, gui = "bold" }, -- special things inside a comment SpecialComment { Comment, gui = "bold" }, -- special things inside a comment
Debug { Special }, -- debugging statements Debug { Special }, -- 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,italic" }, -- (preferred) anything that needs extra attention; mostly the keywords TODO FIXME and XXX Todo { gui = "bold,italic" }, -- (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
@@ -188,20 +189,20 @@ local theme = lush(function()
-- LspReferenceRead { }, -- used for highlighting "read" references -- LspReferenceRead { }, -- used for highlighting "read" references
-- LspReferenceWrite { }, -- used for highlighting "write" references -- LspReferenceWrite { }, -- 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 = water }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) LspDiagnosticsDefaultInformation { fg = water }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultHint { fg = orchid }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) LspDiagnosticsDefaultHint { fg = orchid }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
-- LspDiagnosticsVirtualTextError { }, -- Used for "Error" diagnostic virtual text -- LspDiagnosticsVirtualTextError { }, -- Used for "Error" diagnostic virtual text
-- LspDiagnosticsVirtualTextWarning { }, -- Used for "Warning" diagnostic virtual text -- LspDiagnosticsVirtualTextWarning { }, -- 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
@@ -271,9 +272,10 @@ local theme = lush(function()
-- TSLiteral { }; -- Literal text. -- TSLiteral { }; -- Literal text.
-- TSURI { }; -- Any URI like a link or email. -- TSURI { }; -- Any URI like a link or email.
GitSignsAdd { bg = SignColumn.bg, fg = leaf }, -- Text that is part of a title. GitSignsAdd { bg = SignColumn.bg, fg = leaf }, -- Text that is part of a title.
GitSignsChange { bg = SignColumn.bg, fg = DiffChange.bg }, -- Literal text. GitSignsChange { bg = SignColumn.bg, fg = DiffChange.bg }, -- Literal text.
GitSignsDelete { bg = SignColumn.bg, fg = DiffDelete.bg }, -- Any URI like a link or email. GitSignsDelete { bg = SignColumn.bg, fg = DiffDelete.bg }, -- Any URI like a link or email.
-- stylua: ignore end
} }
end) end)