neovim configuration using rocks.nvim plugin manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(highlights): disable italic for `@markup.raw`

+11 -3
+1
lua/core/highlights.lua
··· 18 18 local tbl = { 19 19 ["github_dark_default"] = function() 20 20 util_hl().set("StatusLineNC", { reverse = true, inherit = "StatusLine" }) 21 + util_hl().set("@markup.raw", { italic = false }) 21 22 -- util_hl.set("StatusLine", { bold = true }) 22 23 -- local sep = util_hl.tint(util_hl.get("WinBar", "fg"), -0.25) 23 24 -- util_hl.set("WinBar", { reverse = true })
+10 -3
lua/utils/highlights.lua
··· 51 51 ---@field clear? boolean clear existing highlight 52 52 ---@field inherit? string inherit other highlight 53 53 54 - ---@private 54 + local function num_to_hex(color) 55 + return string.format("#%06X", color) 56 + end 57 + 55 58 ---@param opts? {name?: string, link?: boolean} 56 59 ---@param ns? integer 57 60 ---@return vim.api.keyset.hl_info|nil ··· 63 66 if vim.tbl_isempty(hl) then 64 67 return nil 65 68 end 66 - hl.fg = hl.fg and ("#%06x"):format(hl.fg) 67 - hl.bg = hl.bg and ("#%06x"):format(hl.bg) 69 + hl.fg = hl.fg and num_to_hex(hl.fg) 70 + hl.bg = hl.bg and num_to_hex(hl.bg) 68 71 return hl 69 72 end 70 73 ··· 147 150 end 148 151 149 152 local hl = opts.clear and {} or get_hl_as_hex({ name = opts.inherit or name }) or {} 153 + -- clear cterm 154 + if not opts.cterm then 155 + hl.cterm = nil 156 + end 150 157 for attribute, data in pairs(opts) do 151 158 if attribute ~= "clear" and attribute ~= "inherit" then 152 159 local new_data = resolve_from_attr(data, attribute)