Skip to content

Commit

Permalink
Update readme for callout groups
Browse files Browse the repository at this point in the history
  • Loading branch information
aquilesg committed Jul 26, 2024
1 parent bec06d4 commit f6836c9
Showing 1 changed file with 105 additions and 0 deletions.
105 changes: 105 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,97 @@ This is a complete list of all of the options that can be passed to `require("ob
enable = true, -- set to false to disable all additional syntax features
update_debounce = 200, -- update delay after a text change (in milliseconds)
max_file_length = 5000, -- disable UI features for files with more than this many lines

-- Define / create custom callouts
callouts = {
-- This is how the Callout will be rendered after the char
-- ex: <char>Note
["Note"] = {
aliases = {},
char = "",
hl_group = "ObsidianCalloutNote",
},
["Abstract"] = {
aliases = {
"Summary",
"Tldr",
},
char = "",
hl_group = "ObsidianCalloutAbstract",
},
["Info"] = {
aliases = {},
char = "",
hl_group = "ObsidianCalloutInfo",
},
["Todo"] = {
aliases = {},
char = "",
hl_group = "ObsidianCalloutTodo",
},
["Tip"] = {
aliases = {
"Hint",
"Important",
},
char = "󰈸",
hl_group = "ObsidianCalloutTip",
},
["Success"] = {
aliases = {
"Check",
"Done",
},
char = "󰄬",
hl_group = "ObsidianCalloutSuccess",
},
["Question"] = {
aliases = {
"Help",
"FAQ",
},
char = "",
hl_group = "ObsidianCalloutQuestion",
},
["Warning"] = {
aliases = {
"Caution",
"Attentition",
},
char = "",
hl_group = "ObsidianCalloutWarning",
},
["Failure"] = {
aliases = {
"Fail",
"Missing",
},
char = "",
hl_group = "ObsidianCalloutFailure",
},
["Danger"] = {
aliases = {
"Error",
},
char = "",
hl_group = "ObsidianCalloutDanger",
},
["Bug"] = {
aliases = {},
char = "",
hl_group = "ObsidianCalloutBug",
},
["Example"] = {
aliases = {},
char = "",
hl_group = "ObsidianCalloutExample",
},
["Quote"] = {
aliases = {},
char = "󱆨",
hl_group = "ObsidianCalloutQuote",
},
},
-- Define how various check-boxes are displayed
checkboxes = {
-- NOTE: the 'char' value has to be a single character, and the highlight groups are defined below.
Expand Down Expand Up @@ -510,6 +601,20 @@ This is a complete list of all of the options that can be passed to `require("ob
ObsidianTag = { italic = true, fg = "#89ddff" },
ObsidianBlockID = { italic = true, fg = "#89ddff" },
ObsidianHighlightText = { bg = "#75662e" },
-- Callout highlights
ObsidianCalloutNote = { bg = "#1072b8" },
ObsidianCalloutAbstract = { bg = "#d7e6fa" },
ObsidianCalloutInfo = { bg = "#6a93e5" },
ObsidianCalloutTodo = { bg = "#6a93e5" },
ObsidianCalloutTip = { bg = "#d7e6fa" },
ObsidianCalloutSuccess = { bg = "#9fc360" },
ObsidianCalloutQuestion = { bg = "#faebd7" },
ObsidianCalloutWarning = { bg = "#faebd7" },
ObsidianCalloutFailure = { bg = "#ee5d5c" },
ObsidianCalloutDanger = { bg = "#ee5d5c" },
ObsidianCalloutBug = { bg = "#ee5d5c" },
ObsidianCalloutExample = { bg = "#c792ea" },
ObsidianCalloutQuote = { bg = "#E9F0FD" },
},
},

Expand Down

0 comments on commit f6836c9

Please sign in to comment.