From bb8e81073af981d7548177bb560d85d8f2528d5c Mon Sep 17 00:00:00 2001 From: pseudoparenchymatous <105337186+pseudoparenchymatous@users.noreply.github.com> Date: Mon, 26 Jun 2023 09:23:24 +0800 Subject: [PATCH] Add new groups (#11) CurSearch, CursuroLineFold, CursorLineSign, LineNrAbove, LineNrBelow, WinBar, WinBarNC, DiagnosticOk* --- lua/lush_theme/lush_template.lua | 132 ++++++++++++++++++------------- 1 file changed, 75 insertions(+), 57 deletions(-) diff --git a/lua/lush_theme/lush_template.lua b/lua/lush_theme/lush_template.lua index c7ab225..29a23fc 100644 --- a/lua/lush_theme/lush_template.lua +++ b/lua/lush_theme/lush_template.lua @@ -61,63 +61,76 @@ local theme = lush(function(injected_functions) -- -- See :h highlight-groups -- - -- ColorColumn { }, -- Columns set with 'colorcolumn' - -- Conceal { }, -- Placeholder characters substituted for concealed text (see 'conceallevel') - -- Cursor { }, -- Character under the cursor - -- lCursor { }, -- Character under the cursor when |language-mapping| is used (see 'guicursor') - -- CursorIM { }, -- Like Cursor, but used when in IME mode |CursorIM| - -- CursorColumn { }, -- Screen-column at the cursor, when 'cursorcolumn' is set. - -- CursorLine { }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set. - -- Directory { }, -- Directory names (and other special names in listings) - -- DiffAdd { }, -- Diff mode: Added line |diff.txt| - -- DiffChange { }, -- Diff mode: Changed line |diff.txt| - -- DiffDelete { }, -- Diff mode: Deleted line |diff.txt| - -- DiffText { }, -- Diff mode: Changed text within a changed line |diff.txt| - -- EndOfBuffer { }, -- Filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|. - -- TermCursor { }, -- Cursor in a focused terminal - -- TermCursorNC { }, -- Cursor in an unfocused terminal - -- ErrorMsg { }, -- Error messages on the command line - -- VertSplit { }, -- Column separating vertically split windows - -- Folded { }, -- Line used for closed folds - -- FoldColumn { }, -- 'foldcolumn' - -- SignColumn { }, -- Column where |signs| are displayed - -- IncSearch { }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c" - -- Substitute { }, -- |:substitute| replacement text highlighting - -- LineNr { }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set. - -- CursorLineNr { }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line. - -- MatchParen { }, -- 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 -- ") - -- MsgArea { }, -- Area for messages and cmdline - -- MsgSeparator { }, -- Separator for scrolled messages, `msgsep` flag of 'display' - -- MoreMsg { }, -- |more-prompt| - -- NonText { }, -- '@' 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|. - -- Normal { }, -- Normal text - -- NormalFloat { }, -- Normal text in floating windows. - -- NormalNC { }, -- normal text in non-current windows - -- Pmenu { }, -- Popup menu: Normal item. - -- PmenuSel { }, -- Popup menu: Selected item. - -- PmenuSbar { }, -- Popup menu: Scrollbar. - -- PmenuThumb { }, -- Popup menu: Thumb of the scrollbar. - -- Question { }, -- |hit-enter| prompt and yes/no questions - -- 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. - -- SpecialKey { }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace| - -- SpellBad { }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise. - -- SpellCap { }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise. - -- SpellLocal { }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise. - -- SpellRare { }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise. - -- StatusLine { }, -- Status line of current window - -- StatusLineNC { }, -- 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 - -- TabLineFill { }, -- Tab pages line, where there are no labels - -- TabLineSel { }, -- Tab pages line, active tab page label - -- Title { }, -- Titles for output from ":set all", ":autocmd" etc. - -- Visual { }, -- Visual mode selection - -- VisualNOS { }, -- Visual mode selection when vim is "Not Owning the Selection". - -- WarningMsg { }, -- Warning messages - -- Whitespace { }, -- "nbsp", "space", "tab" and "trail" in 'listchars' - -- Winseparator { }, -- Separator between window splits. Inherts from |hl-VertSplit| by default, which it will replace eventually. - -- WildMenu { }, -- Current match in 'wildmenu' completion + -- ColorColumn { }, -- Columns set with 'colorcolumn' + -- Conceal { }, -- Placeholder characters substituted for concealed text (see 'conceallevel') + -- Cursor { }, -- Character under the cursor + -- CurSearch { }, -- Highlighting a search pattern under the cursor (see 'hlsearch') + -- lCursor { }, -- Character under the cursor when |language-mapping| is used (see 'guicursor') + -- CursorIM { }, -- Like Cursor, but used when in IME mode |CursorIM| + -- CursorColumn { }, -- Screen-column at the cursor, when 'cursorcolumn' is set. + -- CursorLine { }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set. + -- Directory { }, -- Directory names (and other special names in listings) + -- DiffAdd { }, -- Diff mode: Added line |diff.txt| + -- DiffChange { }, -- Diff mode: Changed line |diff.txt| + -- DiffDelete { }, -- Diff mode: Deleted line |diff.txt| + -- DiffText { }, -- Diff mode: Changed text within a changed line |diff.txt| + -- EndOfBuffer { }, -- Filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|. + -- TermCursor { }, -- Cursor in a focused terminal + -- TermCursorNC { }, -- Cursor in an unfocused terminal + -- ErrorMsg { }, -- Error messages on the command line + -- VertSplit { }, -- Column separating vertically split windows + -- Folded { }, -- Line used for closed folds + -- FoldColumn { }, -- 'foldcolumn' + -- SignColumn { }, -- Column where |signs| are displayed + -- IncSearch { }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c" + -- Substitute { }, -- |:substitute| replacement text highlighting + -- LineNr { }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set. + -- LineNrAbove { }, -- Line number for when the 'relativenumber' option is set, above the cursor line + -- LineNrBelow { }, -- Line number for when the 'relativenumber' option is set, below the cursor line + -- CursorLineNr { }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line. + -- CursorLineFold { }, -- Like FoldColumn when 'cursorline' is set for the cursor line + -- CursorLineSign { }, -- Like SignColumn when 'cursorline' is set for the cursor line + -- MatchParen { }, -- 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 -- ") + -- MsgArea { }, -- Area for messages and cmdline + -- MsgSeparator { }, -- Separator for scrolled messages, `msgsep` flag of 'display' + -- MoreMsg { }, -- |more-prompt| + -- NonText { }, -- '@' 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|. + -- Normal { }, -- Normal text + -- NormalFloat { }, -- Normal text in floating windows. + -- FloatBorder { }, -- Border of floating windows. + -- FloatTitle { }, -- Title of floating windows. + -- NormalNC { }, -- normal text in non-current windows + -- Pmenu { }, -- Popup menu: Normal item. + -- PmenuSel { }, -- Popup menu: Selected item. + -- PmenuKind { }, -- Popup menu: Normal item "kind" + -- PmenuKindSel { }, -- Popup menu: Selected item "kind" + -- PmenuExtra { }, -- Popup menu: Normal item "extra text" + -- PmenuExtraSel { }, -- Popup menu: Selected item "extra text" + -- PmenuSbar { }, -- Popup menu: Scrollbar. + -- PmenuThumb { }, -- Popup menu: Thumb of the scrollbar. + -- Question { }, -- |hit-enter| prompt and yes/no questions + -- 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. + -- SpecialKey { }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace| + -- SpellBad { }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise. + -- SpellCap { }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise. + -- SpellLocal { }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise. + -- SpellRare { }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise. + -- StatusLine { }, -- Status line of current window + -- StatusLineNC { }, -- 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 + -- TabLineFill { }, -- Tab pages line, where there are no labels + -- TabLineSel { }, -- Tab pages line, active tab page label + -- Title { }, -- Titles for output from ":set all", ":autocmd" etc. + -- Visual { }, -- Visual mode selection + -- VisualNOS { }, -- Visual mode selection when vim is "Not Owning the Selection". + -- WarningMsg { }, -- Warning messages + -- Whitespace { }, -- "nbsp", "space", "tab" and "trail" in 'listchars' + -- Winseparator { }, -- Separator between window splits. Inherts from |hl-VertSplit| by default, which it will replace eventually. + -- WildMenu { }, -- Current match in 'wildmenu' completion + -- WinBar { }, -- Window bar of current window + -- WinBarNC { }, -- Window bar of not-current windows -- Common vim syntax groups used for all kinds of code and markup. -- Commented-out groups should chain up to their preferred (*) group @@ -189,22 +202,27 @@ local theme = lush(function(injected_functions) -- DiagnosticWarn { } , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline) -- DiagnosticInfo { } , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline) -- DiagnosticHint { } , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline) + -- DiagnosticOk { } , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline) -- DiagnosticVirtualTextError { } , -- Used for "Error" diagnostic virtual text. -- DiagnosticVirtualTextWarn { } , -- Used for "Warn" diagnostic virtual text. -- DiagnosticVirtualTextInfo { } , -- Used for "Info" diagnostic virtual text. -- DiagnosticVirtualTextHint { } , -- Used for "Hint" diagnostic virtual text. + -- DiagnosticVirtualTextOk { } , -- Used for "Ok" diagnostic virtual text. -- DiagnosticUnderlineError { } , -- Used to underline "Error" diagnostics. -- DiagnosticUnderlineWarn { } , -- Used to underline "Warn" diagnostics. -- DiagnosticUnderlineInfo { } , -- Used to underline "Info" diagnostics. -- DiagnosticUnderlineHint { } , -- Used to underline "Hint" diagnostics. + -- DiagnosticUnderlineOk { } , -- Used to underline "Ok" diagnostics. -- DiagnosticFloatingError { } , -- Used to color "Error" diagnostic messages in diagnostics float. See |vim.diagnostic.open_float()| -- DiagnosticFloatingWarn { } , -- Used to color "Warn" diagnostic messages in diagnostics float. -- DiagnosticFloatingInfo { } , -- Used to color "Info" diagnostic messages in diagnostics float. -- DiagnosticFloatingHint { } , -- Used to color "Hint" diagnostic messages in diagnostics float. + -- DiagnosticFloatingOk { } , -- Used to color "Ok" diagnostic messages in diagnostics float. -- DiagnosticSignError { } , -- Used for "Error" signs in sign column. -- DiagnosticSignWarn { } , -- Used for "Warn" signs in sign column. -- DiagnosticSignInfo { } , -- Used for "Info" signs in sign column. -- DiagnosticSignHint { } , -- Used for "Hint" signs in sign column. + -- DiagnosticSignOk { } , -- Used for "Ok" signs in sign column. -- Tree-Sitter syntax groups. --