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
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