Skip to content

no hl on bufline part #8

Description

@trickyni
require("foldtext").setup({
  condition = function()
    return true
  end,

  styles = {
    default = {
      parts = {
        { kind = "bufline" },
      },
    },
    h1 = {
      filetypes = { "markdown" },
      parts = {
        { kind = "bufline", delimiter = "...", hl = "markdownH2" },
        {
          kind = "section",
          output = { { ".........", "markdownH2" } },
        },
      },
    },
  },
})

I've been playing around with custom markdown header folds.
Right now, I'm getting highlighting on the delimeters and the output for the "section" part (many dots, in this case), but the text acquired through the "bufline" part is unstyled

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions