feat: yellow comments (without tree-sitter) main
authorhylo <hylo@posteo.de>
Tue, 30 May 2023 20:53:26 +0000 (22:53 +0200)
committerhylo <hylo@posteo.de>
Tue, 30 May 2023 20:53:26 +0000 (22:53 +0200)
lua/flatwhite/groups.lua
lua/flatwhite/init.lua

index f3f32a1d0f01a698f953f7b949e224e2ae523187..5f38bd6a88b49ba6c6ef9ba551a9b9eb82947c59 100644 (file)
@@ -36,7 +36,8 @@ local function setup(configs)
    return {
       Normal = { fg = colors.fg, bg = colors.bg },
       NormalFloat = { fg = colors.fg, bg = colors.base6 },
    return {
       Normal = { fg = colors.fg, bg = colors.bg },
       NormalFloat = { fg = colors.fg, bg = colors.base6 },
-      Comment = { fg = colors.comment, italic = configs.italic_comment },
+      -- Comment = { fg = colors.comment, italic = configs.italic_comment },
+      Comment = { fg = colors.yellow_text, bg = colors.yellow_bg, italic = configs.italic_comment },
       Constant = colors.fw_teal,
       String = colors.fw_green,
       Character = colors.fw_green,
       Constant = colors.fw_teal,
       String = colors.fw_green,
       Character = colors.fw_green,
@@ -147,7 +148,7 @@ local function setup(configs)
       ["@method"] = configs.bold_function and colors.fw_base_bold or colors.fw_base,
       -- ["@field"] = colors.fw_base,
       -- ["@field.yaml"] = {fg = colors.base1, bg = colors.base7},
       ["@method"] = configs.bold_function and colors.fw_base_bold or colors.fw_base,
       -- ["@field"] = colors.fw_base,
       -- ["@field.yaml"] = {fg = colors.base1, bg = colors.base7},
-      ["@field"] = {fg = colors.base1, bg = colors.base7},
+      ["@field"] = { fg = colors.base1, bg = colors.base7 },
       ["@property"] = colors.fw_base,
       ["@constructor"] = colors.fw_base,
       ["@conditional"] = colors.fw_purple,
       ["@property"] = colors.fw_base,
       ["@constructor"] = colors.fw_base,
       ["@conditional"] = colors.fw_purple,
@@ -163,19 +164,19 @@ local function setup(configs)
       ["@type.qualifier"] = colors.fw_purple,
       ["@structure"] = colors.fw_purple,
       ["@include"] = colors.fw_purple,
       ["@type.qualifier"] = colors.fw_purple,
       ["@structure"] = colors.fw_purple,
       ["@include"] = colors.fw_purple,
-      ["@variable"] = colors.fw_orange,
-      ["@variable.builtin"] = {fg=colors.fg, italic=true},--colors.fw_base,
+      -- ["@variable"] = colors.fw_orange,
+      ["@variable.builtin"] = { fg = colors.fg, italic = true }, --colors.fw_base,
       ["@text"] = colors.fw_orange,
       ["@text.strong"] = { fg = colors.orange_text, bg = colors.orange_bg, bold = true },
       ["@text.emphasis"] = { fg = colors.orange_text, bg = colors.orange_bg, italic = true },
       ["@text.underline"] = { fg = colors.orange_text, bg = colors.orange_bg, underline = true },
       ["@text.title"] = { fg = colors.purple_text, bg = colors.purple_bg, bold = true }, -- title
       ["@text.literal"] = colors.fw_orange,
       ["@text"] = colors.fw_orange,
       ["@text.strong"] = { fg = colors.orange_text, bg = colors.orange_bg, bold = true },
       ["@text.emphasis"] = { fg = colors.orange_text, bg = colors.orange_bg, italic = true },
       ["@text.underline"] = { fg = colors.orange_text, bg = colors.orange_bg, underline = true },
       ["@text.title"] = { fg = colors.purple_text, bg = colors.purple_bg, bold = true }, -- title
       ["@text.literal"] = colors.fw_orange,
-      ["@text.uri"] = { fg = colors.blue_text, bg = colors.blue_bg, italic = true },     -- urls
+      ["@text.uri"] = { fg = colors.blue_text, bg = colors.blue_bg, italic = true }, -- urls
       ["@text.reference"] = { fg = colors.orange_text, bg = colors.orange_bg, bold = true },
       ["@tag"] = colors.fw_purple,
       ["@tag.attribute"] = { fg = colors.base2, bg = colors.base7, italic = true },
       ["@text.reference"] = { fg = colors.orange_text, bg = colors.orange_bg, bold = true },
       ["@tag"] = colors.fw_purple,
       ["@tag.attribute"] = { fg = colors.base2, bg = colors.base7, italic = true },
-      ["@tag.delimiter"] = { fg = colors.base2, bg = colors.base7, },
+      ["@tag.delimiter"] = { fg = colors.base2, bg = colors.base7 },
       -- Semantic
       ["@class"] = colors.fw_teal,
       ["@struct"] = colors.fw_teal,
       -- Semantic
       ["@class"] = colors.fw_teal,
       ["@struct"] = colors.fw_teal,
index 18fe900d34ab7154184b2060130d9250e8bdfecd..507a4ae6e4657927dd45a23ed02bfccc6dde67ec 100644 (file)
@@ -12,7 +12,7 @@ local tbl_deep_extend = vim.tbl_deep_extend
 ---@field colors Palette
 ---@field overrides table<string, Highlight>
 local DEFAULT_CONFIG = {
 ---@field colors Palette
 ---@field overrides table<string, Highlight>
 local DEFAULT_CONFIG = {
-   italic_comment = false,
+   italic_comment = true,
    bold_function = true,
    transparent_bg = false,
    show_end_of_buffer = false,
    bold_function = true,
    transparent_bg = false,
    show_end_of_buffer = false,
@@ -109,6 +109,10 @@ end
 return {
    load = load,
    setup = setup,
 return {
    load = load,
    setup = setup,
-   configs = function() return local_configs end,
-   colors = function() return local_configs.colors end,
+   configs = function()
+      return local_configs
+   end,
+   colors = function()
+      return local_configs.colors
+   end,
 }
 }