From 2951af7bbd839ebef25e33f8bd01bd5c501f76c8 Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Sat, 29 Oct 2022 18:19:38 +0200 Subject: Update how options and colorscheme is set (#12) * Update loading of colorscheme * Fix typo * Fix setting of style * Fix highlighting * Unpack style * Add empty table if props are nil * Fix concat of tables * Fix typo * Update settings * Add call set in settings * Add deep extend * Remove style field * Update README BREAKING CHANGE: updates how the colorscheme is set and the structure of the options table --- lua/no-clown-fiesta/highlight-group/markdown.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua/no-clown-fiesta/highlight-group/markdown.lua') diff --git a/lua/no-clown-fiesta/highlight-group/markdown.lua b/lua/no-clown-fiesta/highlight-group/markdown.lua index 28ece3b..6147a25 100644 --- a/lua/no-clown-fiesta/highlight-group/markdown.lua +++ b/lua/no-clown-fiesta/highlight-group/markdown.lua @@ -3,7 +3,7 @@ local M = {} function M.highlight(palette) return { markdownBlockquote = { fg = palette.accent }, - markdownBold = { fg = palette.yellow, style = "bold" }, + markdownBold = { fg = palette.yellow, bold = true }, markdownCode = { fg = palette.green }, markdownCodeBlock = { fg = palette.green }, markdownCodeDelimiter = { fg = palette.green }, @@ -19,12 +19,12 @@ function M.highlight(palette) markdownIdDeclaration = { fg = palette.blue }, markdownIdDelimiter = { fg = palette.light_gray }, markdownLinkDelimiter = { fg = palette.light_gray }, - markdownItalic = { style = "italic" }, + markdownItalic = { italic = true }, markdownLinkText = { fg = palette.blue }, markdownListMarker = { fg = palette.red }, markdownOrderedListMarker = { fg = palette.red }, markdownRule = { fg = palette.accent }, - markdownUrl = { fg = palette.cyan, style = "underline" }, + markdownUrl = { fg = palette.cyan, underline = true }, } end -- cgit v1.2.3-70-g09d2