From 4c875cb46c8d5f6cc21929d77158ad77e449a57a Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 24 Feb 2024 02:36:24 -0600 Subject: [PATCH] fix(nvim): use new ts groups for orgmode delims --- .../nvim/lua/plugins/configs/kanagawa.lua | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/plugins/configs/kanagawa.lua b/dots/.config/nvim/lua/plugins/configs/kanagawa.lua index e06bd16d..fe3dceb3 100644 --- a/dots/.config/nvim/lua/plugins/configs/kanagawa.lua +++ b/dots/.config/nvim/lua/plugins/configs/kanagawa.lua @@ -238,7 +238,32 @@ return { { "@markup.list.unchecked", { fg = colors.crystalBlue } }, { "@markup.verbatim", { fg = colors.springGreen, bg = colors.sumiInk0 } }, { "@org.verbatim", { link = "@markup.verbatim" } }, - { "@org.verbatim.delimiter", { link = "@markup.verbatim" } }, + { + "@org.verbatim.delimiter", + { + fg = function() + return get_hl("@markup.raw.delimiter")().fg + end, + bg = function() + return get_hl("@org.verbatim")().bg + end, + }, + }, + { "@org.code", { link = "@markup.raw" } }, + { + "@org.code.delimiter", + { + fg = function() + return get_hl("@markup.raw.delimiter")().fg + end, + bg = function() + return get_hl("@org.code")().bg + end, + }, + }, + { "@org.italic.delimiter", get_hl("@markup.raw.delimiter", { italic = true }) }, + { "@org.bold.delimiter", get_hl("@markup.raw.delimiter", { bold = true }) }, + { "@org.strikethrough.delimiter", get_hl("@markup.raw.delimiter", { strikethrough = true }) }, { "@org.timestamp", { underline = true, italic = false } }, { "@org.timestamp.active", get_hl("@org.timestamp", { fg = colors.springViolet1 }) }, {