Skip to content

Commit 8f22819

Browse files
committed
fix: map @tag.builtin.tsx to @tag.tsx for builtin tags on tsx
1 parent 0047778 commit 8f22819

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

fnl/oxocarbon/init.fnl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@
488488
(custom-set-face! "@tag" [] {:fg oxocarbon.base09 :bg oxocarbon.none})
489489
(custom-set-face! "@tag.attribute" [] {:fg oxocarbon.base15 :bg oxocarbon.none})
490490
(custom-set-face! "@tag.delimiter" [] {:fg oxocarbon.base15 :bg oxocarbon.none})
491+
(custom-set-face! "@tag.builtin.tsx" [] {:link "@tag.tsx"})
491492

492493
;;; Conceal
493494
;; @conceal

lua/oxocarbon/init.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ local base00 = "#161616"
1010
local base06 = "#ffffff"
1111
local base09 = "#78a9ff"
1212
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"})
13-
do end (vim.g)["terminal_color_0"] = oxocarbon.base01
13+
vim.g["terminal_color_0"] = oxocarbon.base01
1414
vim.g["terminal_color_1"] = oxocarbon.base11
1515
vim.g["terminal_color_2"] = oxocarbon.base14
1616
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,
264264
vim.api.nvim_set_hl(0, "@tag", {fg = oxocarbon.base09, bg = oxocarbon.none})
265265
vim.api.nvim_set_hl(0, "@tag.attribute", {fg = oxocarbon.base15, bg = oxocarbon.none})
266266
vim.api.nvim_set_hl(0, "@tag.delimiter", {fg = oxocarbon.base15, bg = oxocarbon.none})
267+
vim.api.nvim_set_hl(0, "@tag.builtin.tsx", {link = "@tag.tsx"})
267268
vim.api.nvim_set_hl(0, "@reference", {fg = oxocarbon.base04, bg = oxocarbon.none})
268269
vim.api.nvim_set_hl(0, "NvimInternalError", {fg = oxocarbon.base00, bg = oxocarbon.base08})
269270
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"})
373374
vim.api.nvim_set_hl(0, "VimwikiList", {link = "markdownListMarker"})
374375
vim.api.nvim_set_hl(0, "VimwikiLink", {link = "markdownUrl"})
375376
vim.api.nvim_set_hl(0, "VimwikiCode", {link = "markdownCode"})
376-
return {oxocarbon = oxocarbon}
377+
return {oxocarbon = oxocarbon}

0 commit comments

Comments
 (0)