-
-
Notifications
You must be signed in to change notification settings - Fork 233
Core Highlights
core.highlights maps all possible highlight groups available throughout
Neorg under a single tree of highlights: @neorg.*.
-
dim(table)Handles the dimming of certain highlight groups.
It sometimes is favourable to use an existing highlight group, but to dim or brighten it a little bit.
To do so, you may use this table, which, similarly to the
highlightstable, will concatenate nested trees to form a highlight group name.The difference is, however, that the leaves of the tree are a table, not a single string. This table has three possible fields:
-
reference- which highlight to use as reference for the dimming. -
percentage- by how much to darken the reference highlight. This value may be between-100and100, where negative percentages brighten the reference highlight, whereas positive values dim the highlight by the given percentage.
-
markup(table)
-
inline_comment(table)
-
percentage(number)
40 -
reference(string)
"Normal"
-
-
verbatim(table)
-
percentage(number)
20 -
reference(string)
"Normal"
-
-
-
tags(table)
-
ranged_verbatim(table)
-
code_block(table)
-
affect(string)
"background" -
percentage(number)
15 -
reference(string)
"Normal"
-
-
-
-
-
highlights(table)The TS highlights for each Neorg type.
The
highlightstable is a large collection of nested trees. At the leaves of each of these trees is the final highlight to apply to that tree. For example:"+@comment"tells Neorg to link to an existing highlight group@comment(denoted by the+prefix). When no prefix is found, the string is treated as arguments passed to:highlight, for example:gui=bold fg=#000000.Nested trees concatenate, thus:
tags = { ranged_verbatim = { begin = "+@comment", }, }
matches the highlight group:
@neorg.tags.ranged_verbatim.begin
and converts into the following command:
highlight! link @neorg.tags.ranged_verbatim.begin @comment
-
definitions(table) -
footnotes(table) -
headings(table)-
1(table)
-
prefix(string)
"+@attribute" -
title(string)
"+@attribute"
-
-
2(table)
-
prefix(string)
"+@label" -
title(string)
"+@label"
-
-
3(table)
-
prefix(string)
"+@constant" -
title(string)
"+@constant"
-
-
4(table)
-
prefix(string)
"+@string" -
title(string)
"+@string"
-
-
5(table)
-
prefix(string)
"+@label" -
title(string)
"+@label"
-
-
6(table)
-
prefix(string)
"+@constructor" -
title(string)
"+@constructor"
-
-
-
links(table)
-
description(table)
-
delimiter(string)
"+NonText"
-
-
file(table)
-
delimiter(string)
"+NonText"
-
-
location(table)
-
delimiter(string)
"+NonText" -
external_file(table)
-
prefix(string)
"+@label"
-
-
generic(table)
-
prefix(string)
"+@type"
-
-
heading(table)
-
-
lists(table)-
ordered(table)
-
1(table)
-
content(string)
"+@none" -
prefix(string)
"+@repeat"
-
-
2(table)
-
content(string)
"+@none" -
prefix(string)
"+@repeat"
-
-
3(table)
-
content(string)
"+@none" -
prefix(string)
"+@repeat"
-
-
4(table)
-
content(string)
"+@none" -
prefix(string)
"+@repeat"
-
-
5(table)
-
content(string)
"+@none" -
prefix(string)
"+@repeat"
-
-
6(table)
-
content(string)
"+@none" -
prefix(string)
"+@repeat"
-
-
-
unordered(table)
-
-
markup(table)-
bold(table)
-
delimiter(string)
"+NonText"
-
-
free_form_delimiter(string)
"+NonText" -
inline_comment(table)
-
delimiter(string)
"+NonText"
-
-
inline_macro(table)
-
delimiter(string)
"+NonText"
-
-
inline_math(table)
-
delimiter(string)
"+NonText"
-
-
italic(table)
-
delimiter(string)
"+NonText"
-
-
spoiler(table)
-
delimiter(string)
"+NonText"
-
-
strikethrough(table)
-
delimiter(string)
"+NonText"
-
-
subscript(table)
-
delimiter(string)
"+NonText"
-
-
superscript(table)
-
delimiter(string)
"+NonText"
-
-
underline(table)
-
delimiter(string)
"+NonText"
-
-
verbatim(table)
-
delimiter(string)
"+NonText"
-
-
-
quotes(table)-
2(table)
-
content(string)
"+Blue" -
prefix(string)
"+Blue"
-
-
3(table)
-
content(string)
"+Yellow" -
prefix(string)
"+Yellow"
-
-
4(table)
-
content(string)
"+Red" -
prefix(string)
"+Red"
-
-
5(table)
-
content(string)
"+Green" -
prefix(string)
"+Green"
-
-
6(table)
-
content(string)
"+Brown" -
prefix(string)
"+Brown"
-
-
tags(table)-
ranged_verbatim(table)-
begin(string)
"+@keyword" -
document_meta(table)
-
authors(string)
"+@annotation" -
categories(string)
"+@keyword" -
created(string)
"+@float" -
description(string)
"+@label" -
key(string)
"+@field" -
number(string)
"+@number" -
trailing(string)
"+@repeat" -
updated(string)
"+@float" -
value(string)
"+@string" -
version(string)
"+@float"
-
end(string)
"+@keyword" -
name(table)
-
delimiter(string)
"+@none" -
word(string)
"+@keyword"
-
-
parameters(string)
"+@type"
-
-
todo_items(table)Highlights for TODO items.
This strictly covers the
( )component of any detached modifier. In other words, these highlights only bother with highlighting the brackets and the content within, but not the object containing the TODO item itself.-
cancelled(table)
-
content(string)
"+@none"
-
-
done(table)
-
content(string)
"+@none"
-
-
on_hold(table)
-
content(string)
"+@none"
-
-
pending(table)
-
content(string)
"+@none"
-
-
recurring(table)
-
content(string)
"+@none"
-
-
uncertain(table)
-
content(string)
"+@none"
-
-
undone(table)
-
content(string)
"+@none"
-
-
urgent(table)
-
content(string)
"+@none"
-
-
-
todo_items_match_color(string)How to change the colour of TODO items depending on their state.
This can be one of four values:
false,"all","except_undone"and"cancelled".- When set to
falsethe content of TODO items will not be coloured in any special way. - When set to
"all"the content of TODO items will directly reflect the colour of the item's TODO box. - When set to
"except_undone", will have the same behaviour as"all"but will exclude undone TODO items. - When set to
"cancelled"will only highlight the content of TODO items for cancelled tasks.
"cancelled" - When set to
-
core.autocommands- Handles the creation and management of Neovim's autocommands.
-
core.integrations.treesitter- A module designed to integrate Treesitter into Neorg.
core.autocommandscore.clipboardcore.clipboard.code-blockscore.completioncore.concealercore.defaultscore.dirmancore.dirman.utilscore.esupports.hopcore.esupports.indentcore.esupports.metagencore.exportcore.export.htmlcore.export.markdowncore.fscore.highlightscore.integrations.coq_nvimcore.integrations.nvim-cmpcore.integrations.nvim-compecore.integrations.treesittercore.iterocore.journalcore.keybindscore.latex.renderercore.looking-glasscore.neorgcmdcore.neorgcmd.commands.returncore.pivotcore.presentercore.promocore.qol.toccore.qol.todo_itemscore.queries.nativecore.scannercore.storagecore.summarycore.syntaxcore.tanglecore.tempuscore.text-objectscore.todo-introspectorcore.uicore.ui.calendar