diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-02-21 00:53:04 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-02-21 00:53:04 +0100 |
commit | 667d51fd990d52f7ba80d9f76baa217dd79c6b11 (patch) | |
tree | 933e37f975b81c84e6c9cb5dd7501ed05e773247 /lua/no-clown-fiesta | |
parent | c3fd698b6e8f3ed134471520c4f0c12a1e3cb7e9 (diff) |
Add orgmode file
Diffstat (limited to 'lua/no-clown-fiesta')
-rw-r--r-- | lua/no-clown-fiesta/groups/orgmode.lua | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/lua/no-clown-fiesta/groups/orgmode.lua b/lua/no-clown-fiesta/groups/orgmode.lua new file mode 100644 index 0000000..10774c9 --- /dev/null +++ b/lua/no-clown-fiesta/groups/orgmode.lua @@ -0,0 +1,69 @@ +local M = {} + +function M.highlight(palette, opts) + return { + ["@org.headline.level1"] = { link = "Title", default = true }, + ["@org.headline.level2"] = { link = "Constant", default = true }, + ["@org.headline.level3"] = { link = "Identifier", default = true }, + ["@org.headline.level4"] = { link = "Statement", default = true }, + ["@org.headline.level5"] = { link = "PreProc", default = true }, + ["@org.headline.level6"] = { link = "Type", default = true }, + ["@org.headline.level7"] = { link = "Special", default = true }, + ["@org.headline.level8"] = { link = "String", default = true }, + + -- Headline tags + ["@org.tag"] = { link = "@tag.attribute", default = true }, + + -- Headline plan + ["@org.plan"] = { link = "Constant", default = true }, + + -- Timestamps + ["@org.timestamp.active"] = { link = "@keyword", default = true }, + ["@org.timestamp.inactive"] = { link = "@comment", default = true }, + -- Lists/Checkboxes + ["@org.bullet"] = { link = "@markup.list", default = true }, + ["@org.checkbox"] = { link = "@markup.list.unchecked", default = true }, + ["@org.checkbox.halfchecked"] = { + link = "@markup.list.unchecked", + default = true, + }, + ["@org.checkbox.checked"] = { link = "@markup.list.checked", default = true }, + + -- Drawers + ["@org.properties"] = { link = "@property", default = true }, + ["@org.properties.name"] = { link = "@property", default = true }, + ["@org.drawer"] = { link = "@property", default = true }, + + ["@org.comment"] = { link = "@comment", default = true }, + ["@org.directive"] = { link = "@comment", default = true }, + ["@org.block"] = { link = "@comment", default = true }, + + -- Markup + ["@org.bold"] = { link = "@markup.strong", default = true }, + ["@org.bold.delimiter"] = { link = "@markup.strong", default = true }, + ["@org.italic"] = { link = "@markup.italic", default = true }, + ["@org.italic.delimiter"] = { link = "@markup.italic", default = true }, + ["@org.strikethrough"] = { link = "@markup.strikethrough", default = true }, + ["@org.strikethrough.delimiter"] = { + link = "@markup.strikethrough", + default = true, + }, + ["@org.underline"] = { link = "@markup.underline", default = true }, + ["@org.underline.delimiter"] = { link = "@markup.underline", default = true }, + ["@org.code"] = { link = "@markup.raw", default = true }, + ["@org.code.delimiter"] = { link = "@markup.raw", default = true }, + ["@org.verbatim"] = { link = "@markup.raw", default = true }, + ["@org.verbatim.delimiter"] = { link = "@markup.raw", default = true }, + ["@org.hyperlink"] = { link = "@markup.link.url", default = true }, + ["@org.latex"] = { link = "@markup.math", default = true }, + ["@org.latex_env"] = { link = "@markup.environment", default = true }, + -- Other + ["@org.table.delimiter"] = { link = "@punctuation.special", default = true }, + ["@org.table.heading"] = { link = "@markup.heading", default = true }, + ["@org.edit_src"] = { link = "Visual", default = true }, + ["@org.keyword.todo"] = { fg = palette.red, default = true }, + ["@org.keyword.done"] = { fg = palette.sign_add, default = true }, + } +end + +return M |