From 8f1d9bfb849bd6e0795d3b78ceeafb15d7f6cd52 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 21 Jan 2024 01:33:08 -0600 Subject: [PATCH] fix(nvim): add in highlight links for Kanagawa for new TS highlights HACK: Remove this later when Kanagawa gets updated highlight groups. --- .../nvim/lua/plugins/configs/kanagawa.lua | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/dots/.config/nvim/lua/plugins/configs/kanagawa.lua b/dots/.config/nvim/lua/plugins/configs/kanagawa.lua index 21a32084..2bd57506 100644 --- a/dots/.config/nvim/lua/plugins/configs/kanagawa.lua +++ b/dots/.config/nvim/lua/plugins/configs/kanagawa.lua @@ -39,6 +39,50 @@ return { vim.api.nvim_set_hl(0, "NvimNotifyTrace", { fg = colors.oniViolet }) local overrides = { + -- HACK: Temporarily set these overrides to support new Neovim Treesitter + -- and Neovim core highlight groups + ["@variable.parameter"] = { link = "@parameter" }, + ["@variable.member"] = { link = "@field" }, + ["@module"] = { link = "@namespace" }, + ["@number.float"] = { link = "@float" }, + ["@string.special.symbol"] = { link = "@symbol" }, + ["@string.regexp"] = { link = "@string.regex" }, + ["@markup.strong"] = { link = "@text.strong" }, + ["@markup.italic"] = { link = "@text.emphasis" }, + ["@markup.underline"] = { link = "@text.underline" }, + ["@markup.strikethrough"] = { link = "@text.strike" }, + ["@markup.heading"] = { link = "@text.title" }, + ["@markup.quote"] = { link = "@text.quote" }, + ["@markup.link.url"] = { link = "@text.uri" }, + ["@markup.math"] = { link = "@text.math" }, + ["@markup.environment"] = { link = "@text.environment" }, + ["@markup.environment.name"] = { link = "@text.environment.name" }, + ["@markup.link"] = { link = "@text.reference" }, + ["@markup.raw"] = { link = "@text.literal" }, + ["@markup.raw.block"] = { link = "@text.literal.block" }, + ["@markup.link.label"] = { link = "@string.special" }, + ["@markup.list"] = { link = "@punctuation.special" }, + ["@function.method"] = { link = "@method" }, + ["@function.method.call"] = { link = "@method.call" }, + ["@comment.todo"] = { link = "@text.todo" }, + ["@comment.error"] = { link = "@text.danger" }, + ["@comment.warning"] = { link = "@text.warning" }, + ["@comment.hint"] = { link = "@text.note" }, + ["@comment.info"] = { link = "@text.note" }, + ["@comment.note"] = { link = "@text.note" }, + ["@comment.ok"] = { link = "@text.note" }, + ["@diff.plus"] = { link = "@text.diff.add" }, + ["@diff.minus"] = { link = "@text.diff.delete" }, + ["@diff.delta"] = { link = "@text.diff.change" }, + ["@string.special.url"] = { link = "@text.uri" }, + ["@keyword.storage"] = { link = "@storageclass" }, + ["@keyword.directive"] = { link = "@define" }, + ["@keyword.conditional"] = { link = "@conditional" }, + ["@keyword.debug"] = { link = "@debug" }, + ["@keyword.exception"] = { link = "@exception" }, + ["@keyword.import"] = { link = "@include" }, + ["@keyword.repeat"] = { link = "@repeat" }, + WinSeparator = { fg = colors.fujiGray }, StatusLine = { fg = colors.fujiWhite, bg = colors.sumiInk0 }, WinBar = { fg = colors.fujiWhite, bg = nil },