feat: fix yellow, config option for bold functions
authorNathanael Sandy <nathanael.sandy@fokus.fraunhofer.de>
Thu, 23 Mar 2023 12:24:54 +0000 (13:24 +0100)
committerNathanael Sandy <nathanael.sandy@fokus.fraunhofer.de>
Thu, 23 Mar 2023 12:24:54 +0000 (13:24 +0100)
lua/flatwhite/groups.lua
lua/flatwhite/init.lua
lua/flatwhite/palette.lua

index 311c751293b3a0a5eef0844161fb54889d58229c..fc06799dd9d33e92e0cbbdcd6d73511ed8c0d82d 100644 (file)
@@ -127,7 +127,7 @@ local function setup(configs)
       ["@constant"] = colors.fw_teal,
       ["@constant.builtin"] = colors.fw_teal,
       ["@symbol"] = colors.fw_base,
-      ["@comment"] = { fg = colors.base2, italic = true },
+      ["@comment"] = {fg=colors.yellow_text, bg=colors.yellow_bg, italic=true}, --colors.fw_yellow, --{ fg = colors.base2, italic = true },
       ["@constant.macro"] = colors.fw_teal,
       ["@string.regex"] = colors.fw_red,
       ["@string"] = colors.fw_green,
@@ -139,12 +139,12 @@ local function setup(configs)
       ["@annotation"] = colors.fw_blue,
       ["@attribute"] = colors.fw_blue,
       ["@namespace"] = colors.fw_base,
-      ["@function.builtin"] = colors.fw_base_bold,
-      ["@function"] = colors.fw_yellow,
-      ["@function.macro"] = colors.fw_base_bold,
+      ["@function"] = configs.bold_function and colors.fw_base_bold or colors.fw_base,
+      ["@function.builtin"] = configs.bold_function and colors.fw_base_bold or colors.fw_base,
+      ["@function.macro"] = configs.bold_function and colors.fw_base_bold or colors.fw_base,
       ["@parameter"] = colors.fw_base,
       ["@parameter.reference"] = colors.fw_base,
-      ["@method"] = colors.fw_base,
+      ["@method"] = configs.bold_function and colors.fw_base_bold or colors.fw_base,
       ["@field"] = colors.fw_base,
       ["@string.field"] = colors.fw_base,
       ["@property"] = colors.fw_base,
index 876a5417e889c3f241d52ad99b4b172babbe49f7..18fe900d34ab7154184b2060130d9250e8bdfecd 100644 (file)
@@ -13,6 +13,7 @@ local tbl_deep_extend = vim.tbl_deep_extend
 ---@field overrides table<string, Highlight>
 local DEFAULT_CONFIG = {
    italic_comment = false,
+   bold_function = true,
    transparent_bg = false,
    show_end_of_buffer = false,
    lualine_bg_color = nil,
index e5ba897117f80cb88ff1dc2b81d440c681f3adda..c21eb22f87f33b390c3e6b0ec09a7c7f4a8edeee 100644 (file)
@@ -9,9 +9,13 @@ local accent = "#6a4cff"
 
 local yellow_text = "#5b5a43"
 local yellow_text_sec = "#a9994c"
-local yellow_bg = "#f3eec4"
+-- local yellow_bg = "#f3eec4"
 -- local yellow_bg = "#F2EDC0"
-
+-- local yellow_bg = "#F2EaC0"
+-- local yellow_bg = "#fcf2bf"
+-- local yellow_bg = "#f3e7c4"
+local yellow_bg = "#f9f0c2"
+-- local yellow_bg = "#f9ebc3"
 local orange_text = "#5b5143"
 local orange_text_sec = "#957f5f"
 local orange_bg = "#f7e0c3"