From 85d7d7de20b6330528c5b7c0243c3afcc5266711 Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Fri, 29 Jul 2022 17:51:29 +0200 Subject: Update configuration api (#5) * Refactor * Fix opts * Fix plugin typos * Update readme --- lua/no-clown-fiesta/markdown.lua | 56 +++++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 26 deletions(-) (limited to 'lua/no-clown-fiesta/markdown.lua') diff --git a/lua/no-clown-fiesta/markdown.lua b/lua/no-clown-fiesta/markdown.lua index 2b83e05..28ece3b 100644 --- a/lua/no-clown-fiesta/markdown.lua +++ b/lua/no-clown-fiesta/markdown.lua @@ -1,27 +1,31 @@ -local markdown = { - markdownBlockquote = { fg = C.accent }, - markdownBold = { fg = C.yellow, style = "bold" }, - markdownCode = { fg = C.green }, - markdownCodeBlock = { fg = C.green }, - markdownCodeDelimiter = { fg = C.green }, - markdownH1 = { fg = C.blue }, - markdownH2 = { fg = C.blue }, - markdownH3 = { fg = C.blue }, - markdownH4 = { fg = C.blue }, - markdownH5 = { fg = C.blue }, - markdownH6 = { fg = C.blue }, - markdownHeadingDelimiter = { fg = C.red }, - markdownHeadingRule = { fg = C.accent }, - markdownId = { fg = C.purple }, - markdownIdDeclaration = { fg = C.blue }, - markdownIdDelimiter = { fg = C.light_gray }, - markdownLinkDelimiter = { fg = C.light_gray }, - markdownItalic = { style = "italic" }, - markdownLinkText = { fg = C.blue }, - markdownListMarker = { fg = C.red }, - markdownOrderedListMarker = { fg = C.red }, - markdownRule = { fg = C.accent }, - markdownUrl = { fg = C.cyan, style = "underline" }, -} +local M = {} -return markdown +function M.highlight(palette) + return { + markdownBlockquote = { fg = palette.accent }, + markdownBold = { fg = palette.yellow, style = "bold" }, + markdownCode = { fg = palette.green }, + markdownCodeBlock = { fg = palette.green }, + markdownCodeDelimiter = { fg = palette.green }, + markdownH1 = { fg = palette.blue }, + markdownH2 = { fg = palette.blue }, + markdownH3 = { fg = palette.blue }, + markdownH4 = { fg = palette.blue }, + markdownH5 = { fg = palette.blue }, + markdownH6 = { fg = palette.blue }, + markdownHeadingDelimiter = { fg = palette.red }, + markdownHeadingRule = { fg = palette.accent }, + markdownId = { fg = palette.purple }, + markdownIdDeclaration = { fg = palette.blue }, + markdownIdDelimiter = { fg = palette.light_gray }, + markdownLinkDelimiter = { fg = palette.light_gray }, + markdownItalic = { style = "italic" }, + markdownLinkText = { fg = palette.blue }, + markdownListMarker = { fg = palette.red }, + markdownOrderedListMarker = { fg = palette.red }, + markdownRule = { fg = palette.accent }, + markdownUrl = { fg = palette.cyan, style = "underline" }, + } +end + +return M -- cgit v1.2.3-70-g09d2