From dc9fb24c2785e444cac66d555069643b2304a9ff Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 29 Jul 2022 17:29:56 +0200 Subject: Fix opts --- lua/no-clown-fiesta/highlights.lua | 10 +++++----- lua/no-clown-fiesta/treesitter.lua | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lua/no-clown-fiesta/highlights.lua b/lua/no-clown-fiesta/highlights.lua index 1174564..0085abc 100644 --- a/lua/no-clown-fiesta/highlights.lua +++ b/lua/no-clown-fiesta/highlights.lua @@ -16,7 +16,7 @@ function M.highlight(palette, opts) PmenuSel = { fg = palette.blue, bg = palette.alt_bg }, WildMenu = { fg = palette.blue, bg = palette.alt_bg }, CursorLineNr = { fg = palette.light_gray, style = "bold" }, - Comment = { fg = palette.medium_gray, style = opts.italic_comments }, + Comment = { fg = palette.medium_gray, style = opts.comments }, Folded = { fg = palette.light_gray, bg = palette.alt_bg }, FoldColumn = { fg = palette.light_gray, bg = palette.alt_bg }, LineNr = { fg = palette.gray }, @@ -61,7 +61,7 @@ function M.highlight(palette, opts) Question = { fg = palette.cyan }, EndOfBuffer = { fg = palette.bg }, NonText = { fg = palette.bg }, - Variable = { fg = palette.white, style = opts.italic_variables }, + Variable = { fg = palette.white, style = opts.variables }, String = { fg = palette.medium_gray_blue }, Character = { fg = palette.light_green }, Constant = { fg = palette.white }, @@ -69,13 +69,13 @@ function M.highlight(palette, opts) Boolean = { fg = palette.red }, Float = { fg = palette.red }, Identifier = { fg = palette.white }, - Function = { fg = palette.gray_blue, style = opts.italic_functions }, + Function = { fg = palette.gray_blue, style = opts.functions }, Operator = { fg = palette.white }, Type = { fg = palette.white }, StorageClass = { fg = palette.gray_blue }, Structure = { fg = palette.gray_blue }, Typedef = { fg = palette.white }, - Keyword = { fg = palette.gray_blue, style = opts.italic_keywords }, + Keyword = { fg = palette.gray_blue, style = opts.keywords }, Statement = { fg = palette.gray_blue }, Conditional = { fg = palette.gray_blue }, Repeat = { fg = palette.gray_blue }, @@ -91,7 +91,7 @@ function M.highlight(palette, opts) Tag = { fg = palette.pale_purple }, Debug = { fg = palette.red }, Delimiter = { fg = palette.gray }, - SpecialComment = { fg = palette.medium_gray, style = opts.italic_comments }, + SpecialComment = { fg = palette.medium_gray, style = opts.comments }, Underlined = { style = "underline" }, Bold = { style = "bold" }, Italic = { style = "italic" }, diff --git a/lua/no-clown-fiesta/treesitter.lua b/lua/no-clown-fiesta/treesitter.lua index 0f330df..665ac8a 100644 --- a/lua/no-clown-fiesta/treesitter.lua +++ b/lua/no-clown-fiesta/treesitter.lua @@ -2,17 +2,17 @@ local M = {} function M.highlight(palette, opts) return { - TSComment = { fg = palette.medium_gray, style = opts.italic_comments }, + TSComment = { fg = palette.medium_gray, style = opts.comments }, TSAnnotation = { fg = palette.white }, TSAttribute = { fg = palette.white }, TSConstructor = { fg = palette.white }, - TSType = { fg = palette.white, style = opts.bold_type }, + TSType = { fg = palette.white, style = opts.type }, TSTypeBuiltin = { fg = palette.white }, TSConditional = { fg = palette.gray_blue }, TSException = { fg = palette.red }, TSInclude = { fg = palette.red }, - TSKeyword = { fg = palette.gray_blue, style = opts.italic_keywords }, - TSKeywordFunction = { fg = palette.gray_blue, style = opts.italic_keywords }, + TSKeyword = { fg = palette.gray_blue, style = opts.keywords }, + TSKeywordFunction = { fg = palette.gray_blue, style = opts.keywords }, TSLabel = { fg = palette.white }, TSNamespace = { fg = palette.white }, TSRepeat = { fg = palette.gray_blue }, @@ -23,12 +23,12 @@ function M.highlight(palette, opts) TSBoolean = { fg = palette.red }, TSCharacter = { fg = palette.light_green }, TSError = { fg = palette.error_red }, - TSFunction = { fg = palette.cyan, style = opts.italic_functions }, + TSFunction = { fg = palette.cyan, style = opts.functions }, TSFuncBuiltin = { fg = palette.cyan }, TSMethod = { fg = palette.cyan }, TSConstMacro = { fg = palette.cyan }, TSFuncMacro = { fg = palette.cyan }, - TSVariable = { fg = palette.white, style = opts.italic_variables }, + TSVariable = { fg = palette.white, style = opts.variables }, TSVariableBuiltin = { fg = palette.white }, TSProperty = { fg = palette.white }, TSOperator = { fg = palette.white }, -- cgit v1.2.3-70-g09d2