The "description" kind seems to match every configured pattern against a secondary, hard-coded pattern that checks for the "conventional commits" syntax style.
However, being able to create custom fold texts via a simple pattern matching outside of conventional commits would be incredibly useful.
For example: I'd like to use /^##%s+(.+)/ to match individual markdown header levels, and configure each with its own custom icon and highlight pattern.
Could that be added? Either as its own "kind", or as an extension of the "description" kind?
Thank you!
EDIT: If this is doable, could there be multiple styles stemming from one pattern?
For example: if the pattern is /^#+ (.+)/, could there be multiple styles defined for different prefixes of this style, rather than having to create a whole custom type for each markdown header?
Something like
styles = {
"/^#%s+/" = {...}
}
or
styles = {
h2 = {
prefix = "/^##%s+/"
...
}
}
I've forked the code with a very rudimentary patch that lets me bypass the hard-coded second pattern-match, but I'm scraping at the edges of my lua know-how with the stuff I just mentioned 😅
The "description" kind seems to match every configured pattern against a secondary, hard-coded pattern that checks for the "conventional commits" syntax style.
However, being able to create custom fold texts via a simple pattern matching outside of conventional commits would be incredibly useful.
For example: I'd like to use
/^##%s+(.+)/to match individual markdown header levels, and configure each with its own custom icon and highlight pattern.Could that be added? Either as its own "kind", or as an extension of the "description" kind?
Thank you!
EDIT: If this is doable, could there be multiple styles stemming from one pattern?
For example: if the pattern is
/^#+ (.+)/, could there be multiple styles defined for different prefixes of this style, rather than having to create a whole custom type for each markdown header?Something like
or
I've forked the code with a very rudimentary patch that lets me bypass the hard-coded second pattern-match, but I'm scraping at the edges of my lua know-how with the stuff I just mentioned 😅