Add new groups (#11)

CurSearch, CursuroLineFold, CursorLineSign, LineNrAbove, LineNrBelow, WinBar, WinBarNC, DiagnosticOk*
This commit is contained in:
pseudoparenchymatous 2023-06-26 09:23:24 +08:00 committed by GitHub
parent c4a16b83b3
commit bb8e81073a
Signed by: devraza
GPG key ID: 91EAD6081011574B

View file

@ -61,63 +61,76 @@ local theme = lush(function(injected_functions)
-- --
-- See :h highlight-groups -- See :h highlight-groups
-- --
-- ColorColumn { }, -- Columns set with 'colorcolumn' -- ColorColumn { }, -- Columns set with 'colorcolumn'
-- Conceal { }, -- Placeholder characters substituted for concealed text (see 'conceallevel') -- Conceal { }, -- Placeholder characters substituted for concealed text (see 'conceallevel')
-- Cursor { }, -- Character under the cursor -- Cursor { }, -- Character under the cursor
-- lCursor { }, -- Character under the cursor when |language-mapping| is used (see 'guicursor') -- CurSearch { }, -- Highlighting a search pattern under the cursor (see 'hlsearch')
-- CursorIM { }, -- Like Cursor, but used when in IME mode |CursorIM| -- lCursor { }, -- Character under the cursor when |language-mapping| is used (see 'guicursor')
-- CursorColumn { }, -- Screen-column at the cursor, when 'cursorcolumn' is set. -- CursorIM { }, -- Like Cursor, but used when in IME mode |CursorIM|
-- CursorLine { }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set. -- CursorColumn { }, -- Screen-column at the cursor, when 'cursorcolumn' is set.
-- Directory { }, -- Directory names (and other special names in listings) -- CursorLine { }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.
-- DiffAdd { }, -- Diff mode: Added line |diff.txt| -- Directory { }, -- Directory names (and other special names in listings)
-- DiffChange { }, -- Diff mode: Changed line |diff.txt| -- DiffAdd { }, -- Diff mode: Added line |diff.txt|
-- DiffDelete { }, -- Diff mode: Deleted line |diff.txt| -- DiffChange { }, -- Diff mode: Changed line |diff.txt|
-- DiffText { }, -- Diff mode: Changed text within a changed line |diff.txt| -- DiffDelete { }, -- Diff mode: Deleted line |diff.txt|
-- EndOfBuffer { }, -- Filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|. -- DiffText { }, -- Diff mode: Changed text within a changed line |diff.txt|
-- TermCursor { }, -- Cursor in a focused terminal -- EndOfBuffer { }, -- Filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
-- TermCursorNC { }, -- Cursor in an unfocused terminal -- TermCursor { }, -- Cursor in a focused terminal
-- ErrorMsg { }, -- Error messages on the command line -- TermCursorNC { }, -- Cursor in an unfocused terminal
-- VertSplit { }, -- Column separating vertically split windows -- ErrorMsg { }, -- Error messages on the command line
-- Folded { }, -- Line used for closed folds -- VertSplit { }, -- Column separating vertically split windows
-- FoldColumn { }, -- 'foldcolumn' -- Folded { }, -- Line used for closed folds
-- SignColumn { }, -- Column where |signs| are displayed -- FoldColumn { }, -- 'foldcolumn'
-- IncSearch { }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c" -- SignColumn { }, -- Column where |signs| are displayed
-- Substitute { }, -- |:substitute| replacement text highlighting -- IncSearch { }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
-- LineNr { }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set. -- Substitute { }, -- |:substitute| replacement text highlighting
-- CursorLineNr { }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line. -- LineNr { }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
-- MatchParen { }, -- Character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt| -- LineNrAbove { }, -- Line number for when the 'relativenumber' option is set, above the cursor line
-- ModeMsg { }, -- 'showmode' message (e.g., "-- INSERT -- ") -- LineNrBelow { }, -- Line number for when the 'relativenumber' option is set, below the cursor line
-- MsgArea { }, -- Area for messages and cmdline -- CursorLineNr { }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
-- MsgSeparator { }, -- Separator for scrolled messages, `msgsep` flag of 'display' -- CursorLineFold { }, -- Like FoldColumn when 'cursorline' is set for the cursor line
-- MoreMsg { }, -- |more-prompt| -- CursorLineSign { }, -- Like SignColumn when 'cursorline' is set for the cursor line
-- 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|. -- MatchParen { }, -- Character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
-- Normal { }, -- Normal text -- ModeMsg { }, -- 'showmode' message (e.g., "-- INSERT -- ")
-- NormalFloat { }, -- Normal text in floating windows. -- MsgArea { }, -- Area for messages and cmdline
-- NormalNC { }, -- normal text in non-current windows -- MsgSeparator { }, -- Separator for scrolled messages, `msgsep` flag of 'display'
-- Pmenu { }, -- Popup menu: Normal item. -- MoreMsg { }, -- |more-prompt|
-- PmenuSel { }, -- Popup menu: Selected item. -- 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|.
-- PmenuSbar { }, -- Popup menu: Scrollbar. -- Normal { }, -- Normal text
-- PmenuThumb { }, -- Popup menu: Thumb of the scrollbar. -- NormalFloat { }, -- Normal text in floating windows.
-- Question { }, -- |hit-enter| prompt and yes/no questions -- FloatBorder { }, -- Border of floating windows.
-- QuickFixLine { }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there. -- FloatTitle { }, -- Title of floating windows.
-- Search { }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out. -- NormalNC { }, -- normal text in non-current windows
-- SpecialKey { }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace| -- Pmenu { }, -- Popup menu: Normal item.
-- SpellBad { }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise. -- PmenuSel { }, -- Popup menu: Selected item.
-- SpellCap { }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise. -- PmenuKind { }, -- Popup menu: Normal item "kind"
-- SpellLocal { }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise. -- PmenuKindSel { }, -- Popup menu: Selected item "kind"
-- SpellRare { }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise. -- PmenuExtra { }, -- Popup menu: Normal item "extra text"
-- StatusLine { }, -- Status line of current window -- PmenuExtraSel { }, -- Popup menu: Selected item "extra text"
-- 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. -- PmenuSbar { }, -- Popup menu: Scrollbar.
-- TabLine { }, -- Tab pages line, not active tab page label -- PmenuThumb { }, -- Popup menu: Thumb of the scrollbar.
-- TabLineFill { }, -- Tab pages line, where there are no labels -- Question { }, -- |hit-enter| prompt and yes/no questions
-- TabLineSel { }, -- Tab pages line, active tab page label -- QuickFixLine { }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
-- Title { }, -- Titles for output from ":set all", ":autocmd" etc. -- Search { }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
-- Visual { }, -- Visual mode selection -- SpecialKey { }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
-- VisualNOS { }, -- Visual mode selection when vim is "Not Owning the Selection". -- SpellBad { }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
-- WarningMsg { }, -- Warning messages -- SpellCap { }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
-- Whitespace { }, -- "nbsp", "space", "tab" and "trail" in 'listchars' -- SpellLocal { }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
-- Winseparator { }, -- Separator between window splits. Inherts from |hl-VertSplit| by default, which it will replace eventually. -- SpellRare { }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
-- WildMenu { }, -- Current match in 'wildmenu' completion -- 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. -- Common vim syntax groups used for all kinds of code and markup.
-- Commented-out groups should chain up to their preferred (*) group -- 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) -- 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) -- 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) -- 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. -- DiagnosticVirtualTextError { } , -- Used for "Error" diagnostic virtual text.
-- DiagnosticVirtualTextWarn { } , -- Used for "Warn" diagnostic virtual text. -- DiagnosticVirtualTextWarn { } , -- Used for "Warn" diagnostic virtual text.
-- DiagnosticVirtualTextInfo { } , -- Used for "Info" diagnostic virtual text. -- DiagnosticVirtualTextInfo { } , -- Used for "Info" diagnostic virtual text.
-- DiagnosticVirtualTextHint { } , -- Used for "Hint" diagnostic virtual text. -- DiagnosticVirtualTextHint { } , -- Used for "Hint" diagnostic virtual text.
-- DiagnosticVirtualTextOk { } , -- Used for "Ok" diagnostic virtual text.
-- DiagnosticUnderlineError { } , -- Used to underline "Error" diagnostics. -- DiagnosticUnderlineError { } , -- Used to underline "Error" diagnostics.
-- DiagnosticUnderlineWarn { } , -- Used to underline "Warn" diagnostics. -- DiagnosticUnderlineWarn { } , -- Used to underline "Warn" diagnostics.
-- DiagnosticUnderlineInfo { } , -- Used to underline "Info" diagnostics. -- DiagnosticUnderlineInfo { } , -- Used to underline "Info" diagnostics.
-- DiagnosticUnderlineHint { } , -- Used to underline "Hint" 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()| -- 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. -- DiagnosticFloatingWarn { } , -- Used to color "Warn" diagnostic messages in diagnostics float.
-- DiagnosticFloatingInfo { } , -- Used to color "Info" 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. -- 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. -- DiagnosticSignError { } , -- Used for "Error" signs in sign column.
-- DiagnosticSignWarn { } , -- Used for "Warn" signs in sign column. -- DiagnosticSignWarn { } , -- Used for "Warn" signs in sign column.
-- DiagnosticSignInfo { } , -- Used for "Info" signs in sign column. -- DiagnosticSignInfo { } , -- Used for "Info" signs in sign column.
-- DiagnosticSignHint { } , -- Used for "Hint" signs in sign column. -- DiagnosticSignHint { } , -- Used for "Hint" signs in sign column.
-- DiagnosticSignOk { } , -- Used for "Ok" signs in sign column.
-- Tree-Sitter syntax groups. -- Tree-Sitter syntax groups.
-- --