fix(nvim): add in highlight links for Kanagawa for new TS highlights

HACK: Remove this later when Kanagawa gets updated highlight groups.
This commit is contained in:
Price Hiller 2024-01-21 01:33:08 -06:00
parent 8ca0f428d0
commit 8f1d9bfb84
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -39,6 +39,50 @@ return {
vim.api.nvim_set_hl(0, "NvimNotifyTrace", { fg = colors.oniViolet }) vim.api.nvim_set_hl(0, "NvimNotifyTrace", { fg = colors.oniViolet })
local overrides = { 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 }, WinSeparator = { fg = colors.fujiGray },
StatusLine = { fg = colors.fujiWhite, bg = colors.sumiInk0 }, StatusLine = { fg = colors.fujiWhite, bg = colors.sumiInk0 },
WinBar = { fg = colors.fujiWhite, bg = nil }, WinBar = { fg = colors.fujiWhite, bg = nil },