-- stylua: ignore start local util_hl = function() return require("utils.highlights") end -- stylua: ignore end pcall(vim.cmd.colorscheme, "github_dark_default") --[[ some good-looking colorscheems # dark-theme - https://github.com/sho-87/kanagawa-paper.nvim # light-theme - https://github.com/yorickpeterse/nvim-grey ]] -- colorscheme callback map used from core.autocmds local tbl = { ["github_dark_default"] = function() util_hl().set("StatusLineNC", { reverse = true, inherit = "StatusLine" }) util_hl().set("@markup.raw", { italic = false, reverse = true }) util_hl().set("@markup.raw.block", { reverse = false, inherit = "@markup.raw" }) util_hl().set("DiagnosticLineError", { bg = util_hl().tint(util_hl().get("DiagnosticVirtualTextError", "fg"), -0.8) }) util_hl().set("DiagnosticLineWarn", { bg = util_hl().tint(util_hl().get("DiagnosticVirtualTextWarn", "fg"), -0.8) }) util_hl().set("DiagnosticLineInfo", { bg = util_hl().tint(util_hl().get("DiagnosticVirtualTextInfo", "fg"), -0.8) }) util_hl().set("DiagnosticLineHint", { bg = util_hl().tint(util_hl().get("DiagnosticVirtualTextHint", "fg"), -0.8) }) -- util_hl.set("StatusLine", { bold = true }) -- local sep = util_hl.tint(util_hl.get("WinBar", "fg"), -0.25) -- util_hl.set("WinBar", { reverse = true }) -- util_hl.set("WinBarNC", { fg = sep, reverse = true }) -- util_hl.set("WinSeparator", { fg = sep }) end, ["default"] = function () util_hl().set("@markup.raw", { reverse = true }) util_hl().set("@markup.raw.block", { reverse = false }) end } return tbl