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

View File

@@ -67,7 +67,8 @@ 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" },
@@ -77,61 +78,61 @@ local theme = lush(function()
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.darken(20) }, -- status line of current window StatusLine { bg = sand.da(20) }, -- status line of 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. 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.
-- 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|.
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 { }, -- current match in 'wildmenu' completion 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,15 +140,15 @@ 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.
@@ -163,15 +164,15 @@ local theme = lush(function()
-- 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
@@ -274,6 +275,7 @@ local theme = lush(function()
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)