highlight-group
分類
highlightgroup は buffer の内容に由来するものとそれ以外に分けられそう。
name
vim
:h group-name
minor group => link +
| v
+ ============> preferred group(11)
- case insensitive
[a-zA-Z0-9_.@-]
syntax
preferred group
Comment
Constant
Identifier
Statement
PreProc
Type
Special
Underlined
Ignore
Error
Todo
パターンマッチ
ExtMark
verbose
"TODO:" を目立たせたいと思った、どのファイルでも - ばかもりだし
tree-sitter
tree-sitter を主にしてよさそう。
lsp の semantic token
userinterface
UI部品や、marker など。 git, column, conceal... etc
- text
- bg
- statusbar
- winbar
- tabbar
- filer
- border
- scrollbar
- popup
- floating
lsp
vim
:h diagnostic-highlights
:h lsp-highlight
:h expr-highlight
focus
NormalNC
StatusLineNC
WinBarNC
plugin highlight-groups
plugin の定義するカスタムグループ
https://github.com/EdenEast/nightfox.nvim?tab=readme-ov-file#supported-plugins
example
Highlighting groups for various occasions
-----------------------------------------
SpecialKey SpecialKey
TermCursor TermCursor
NonText NonText EndOfBuffer Whitespace LspInlayHint
Directory Directory
ErrorMsg ErrorMsg NvimInvalidSpacing
Search Search Substitute
CurSearch CurSearch IncSearch
MoreMsg MoreMsg
ModeMsg ModeMsg
LineNr LineNr LineNrAbove LineNrBelow
CursorLineNr CursorLineNr
Question Question
StatusLine StatusLine TabLine TabLineFill MsgSeparator WinBar
StatusLineNC StatusLineNC WinBarNC
Title Title FloatTitle FloatFooter
Visual Visual VisualNOS SnippetTabstop
WarningMsg WarningMsg
Folded Folded
DiffAdd DiffAdd
DiffChange DiffChange
DiffDelete DiffDelete
DiffText DiffText
SignColumn SignColumn CursorLineSign FoldColumn CursorLineFold
Conceal Conceal
SpellBad SpellBad
SpellCap SpellCap
SpellRare SpellRare
SpellLocal SpellLocal
Pmenu Pmenu PmenuKind PmenuExtra PmenuSbar
PmenuSel PmenuSel WildMenu PmenuKindSel PmenuExtraSel
PmenuThumb PmenuThumb
TabLineSel TabLineSel
CursorColumn CursorColumn
CursorLine CursorLine
ColorColumn ColorColumn
QuickFixLine QuickFixLine
Syntax highlighting groups
--------------------------
NormalFloat NormalFloat FloatBorder
Cursor Cursor CursorIM
RedrawDebugNormal RedrawDebugNormal
Todo Todo
Underlined Underlined
lCursor lCursor
Normal Normal WinSeparator VertSplit Ignore NvimSpacing
Statement Statement Conditional Repeat Label Keyword Exception Conditional Repeat Label Keyword Exception
Special Special Tag SpecialChar SpecialComment Debug Debug Tag
DiagnosticError DiagnosticError DiagnosticFloatingError DiagnosticVirtualTextError DiagnosticSignError
DiagnosticWarn DiagnosticWarn DiagnosticFloatingWarn DiagnosticVirtualTextWarn DiagnosticSignWarn
DiagnosticInfo DiagnosticInfo DiagnosticFloatingInfo DiagnosticVirtualTextInfo DiagnosticSignInfo
DiagnosticHint DiagnosticHint DiagnosticFloatingHint DiagnosticVirtualTextHint DiagnosticSignHint
DiagnosticOk DiagnosticOk DiagnosticFloatingOk DiagnosticVirtualTextOk DiagnosticSignOk
Comment Comment DiagnosticUnnecessary Comment
Identifier Identifier NvimIdentifier NvimIdentifierScope NvimIdentifierScopeDelimiter NvimIdentifierName
NvimIdentifierKey NvimOptionName NvimOptionScope NvimOptionScopeDelimiter NvimEnvironmentName
String String String SpecialChar SpecialChar NvimRegister NvimString NvimStringBody NvimStringQuote
NvimStringSpecial NvimSingleQuote NvimSingleQuotedBody NvimSingleQuotedQuote NvimDoubleQuote
NvimDoubleQuotedBody NvimDoubleQuotedEscape NvimInvalidStringBody NvimInvalidStringSpecial
NvimInvalidSingleQuotedBody NvimInvalidSingleQuotedQuote NvimInvalidDoubleQuotedBody
NvimInvalidDoubleQuotedEscape
Function Function Function Special Macro
FloatShadow FloatShadow
FloatShadowThrough FloatShadowThrough
MatchParen MatchParen
RedrawDebugClear RedrawDebugClear
RedrawDebugComposed RedrawDebugComposed
RedrawDebugRecompose RedrawDebugRecompose
Error Error NvimInvalid NvimInvalidAssignment NvimInvalidPlainAssignment NvimInvalidAugmentedAssignment
NvimInvalidAssignmentWithAddition NvimInvalidAssignmentWithSubtraction
NvimInvalidAssignmentWithConcatenation NvimInvalidOperator NvimInvalidUnaryOperator
NvimInvalidUnaryPlus NvimInvalidUnaryMinus NvimInvalidNot NvimInvalidBinaryOperator
NvimInvalidComparison NvimInvalidComparisonModifier NvimInvalidBinaryPlus NvimInvalidBinaryMinus
NvimInvalidConcat NvimInvalidConcatOrSubscript NvimInvalidOr NvimInvalidAnd NvimInvalidMultiplication
NvimInvalidDivision NvimInvalidMod NvimInvalidTernary NvimInvalidTernaryColon NvimInvalidDelimiter
NvimInvalidParenthesis NvimInvalidLambda NvimInvalidNestingParenthesis NvimInvalidCallingParenthesis
NvimInvalidSubscript NvimInvalidSubscriptBracket NvimInvalidSubscriptColon NvimInvalidCurly
NvimInvalidContainer NvimInvalidDict NvimInvalidList NvimInvalidValue NvimInvalidIdentifier
NvimInvalidIdentifierScope NvimInvalidIdentifierScopeDelimiter NvimInvalidIdentifierName
NvimInvalidIdentifierKey NvimInvalidColon NvimInvalidComma NvimInvalidArrow NvimInvalidRegister
NvimInvalidNumber NvimInvalidFloat NvimInvalidNumberPrefix NvimInvalidOptionSigil
NvimInvalidOptionName NvimInvalidOptionScope NvimInvalidOptionScopeDelimiter
NvimInvalidEnvironmentSigil NvimInvalidEnvironmentName NvimInvalidString NvimInvalidStringQuote
NvimInvalidSingleQuote NvimInvalidDoubleQuote NvimInvalidDoubleQuotedUnknownEscape
NvimInvalidFigureBrace NvimDoubleQuotedUnknownEscape
DiagnosticUnderlineError DiagnosticUnderlineError
DiagnosticUnderlineWarn DiagnosticUnderlineWarn
DiagnosticUnderlineInfo DiagnosticUnderlineInfo
DiagnosticUnderlineHint DiagnosticUnderlineHint
DiagnosticUnderlineOk DiagnosticUnderlineOk
DiagnosticDeprecated DiagnosticDeprecated
NvimInternalError NvimInternalError NvimFigureBrace NvimSingleQuotedUnknownEscape NvimInvalidSingleQuotedUnknownEscape