From 8f22819fbc6eaf042f9d76772038f8fca4d4e677 Mon Sep 17 00:00:00 2001 From: Jiro Date: Mon, 11 Nov 2024 19:09:41 -0800 Subject: [PATCH] fix: map @tag.builtin.tsx to @tag.tsx for builtin tags on tsx --- fnl/oxocarbon/init.fnl | 1 + lua/oxocarbon/init.lua | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fnl/oxocarbon/init.fnl b/fnl/oxocarbon/init.fnl index 7a3880c..d631d1c 100644 --- a/fnl/oxocarbon/init.fnl +++ b/fnl/oxocarbon/init.fnl @@ -488,6 +488,7 @@ (custom-set-face! "@tag" [] {:fg oxocarbon.base09 :bg oxocarbon.none}) (custom-set-face! "@tag.attribute" [] {:fg oxocarbon.base15 :bg oxocarbon.none}) (custom-set-face! "@tag.delimiter" [] {:fg oxocarbon.base15 :bg oxocarbon.none}) +(custom-set-face! "@tag.builtin.tsx" [] {:link "@tag.tsx"}) ;;; Conceal ;; @conceal diff --git a/lua/oxocarbon/init.lua b/lua/oxocarbon/init.lua index 1cbeb17..63ed966 100644 --- a/lua/oxocarbon/init.lua +++ b/lua/oxocarbon/init.lua @@ -10,7 +10,7 @@ local base00 = "#161616" local base06 = "#ffffff" local base09 = "#78a9ff" local oxocarbon = (((vim.o.background == "dark") and {base00 = base00, base01 = blend_hex(base00, base06, 0.085), base02 = blend_hex(base00, base06, 0.18), base03 = blend_hex(base00, base06, 0.3), base04 = blend_hex(base00, base06, 0.82), base05 = blend_hex(base00, base06, 0.95), base06 = base06, base07 = "#08bdba", base08 = "#3ddbd9", base09 = base09, base10 = "#ee5396", base11 = "#33b1ff", base12 = "#ff7eb6", base13 = "#42be65", base14 = "#be95ff", base15 = "#82cfff", blend = "#131313", none = "NONE"}) or {base00 = base06, base01 = blend_hex(base00, base06, 0.95), base02 = blend_hex(base00, base06, 0.82), base03 = base00, base04 = "#37474F", base05 = "#90A4AE", base06 = "#525252", base07 = "#08bdba", base08 = "#ff7eb6", base09 = "#ee5396", base10 = "#FF6F00", base11 = "#0f62fe", base12 = "#673AB7", base13 = "#42be65", base14 = "#be95ff", base15 = "#FFAB91", blend = "#FAFAFA", none = "NONE"}) -do end (vim.g)["terminal_color_0"] = oxocarbon.base01 +vim.g["terminal_color_0"] = oxocarbon.base01 vim.g["terminal_color_1"] = oxocarbon.base11 vim.g["terminal_color_2"] = oxocarbon.base14 vim.g["terminal_color_3"] = oxocarbon.base13 @@ -264,6 +264,7 @@ vim.api.nvim_set_hl(0, "@text.uri", {fg = oxocarbon.base14, bg = oxocarbon.none, vim.api.nvim_set_hl(0, "@tag", {fg = oxocarbon.base09, bg = oxocarbon.none}) vim.api.nvim_set_hl(0, "@tag.attribute", {fg = oxocarbon.base15, bg = oxocarbon.none}) vim.api.nvim_set_hl(0, "@tag.delimiter", {fg = oxocarbon.base15, bg = oxocarbon.none}) +vim.api.nvim_set_hl(0, "@tag.builtin.tsx", {link = "@tag.tsx"}) vim.api.nvim_set_hl(0, "@reference", {fg = oxocarbon.base04, bg = oxocarbon.none}) vim.api.nvim_set_hl(0, "NvimInternalError", {fg = oxocarbon.base00, bg = oxocarbon.base08}) vim.api.nvim_set_hl(0, "NormalFloat", {fg = oxocarbon.base05, bg = oxocarbon.blend}) @@ -373,4 +374,4 @@ vim.api.nvim_set_hl(0, "VimwikiHeaderChar", {link = "markdownH1"}) vim.api.nvim_set_hl(0, "VimwikiList", {link = "markdownListMarker"}) vim.api.nvim_set_hl(0, "VimwikiLink", {link = "markdownUrl"}) vim.api.nvim_set_hl(0, "VimwikiCode", {link = "markdownCode"}) -return {oxocarbon = oxocarbon} +return {oxocarbon = oxocarbon} \ No newline at end of file