Skip to content
Shawon edited this page Oct 3, 2024 · 1 revision

HTML

HTML

html = {
    enable = true,

    --- Tag renderer for tags that have an
    --- opening & closing tag.
    tags = {
        enable = true,

        --- Default configuration
        default = {
            --- When true, the tag is concealed.
            ---@type boolean
            conceal = false,

            --- Highlight group for the text inside
            --- of the tag
            ---@type string?
            hl = nil
        },

        --- Configuration for specific tag(s).
        --- The key is the tag and the value is the
        --- used configuration.
        configs = {
            b = { conceal = true, hl = "Bold" },
            u = { conceal = true, hl = "Underlined" },
        }
    },

    --- HTML entity configuration
    entities = {
        enable = true,

        --- Highlight group for the rendered entity.
        ---@type string?
        hl = nil
    }
}
Clone this wiki locally