-
Notifications
You must be signed in to change notification settings - Fork 49
feature: Provision to render something like indent lines when indentation is enabled between headers #343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, I don't quite understand the feature request. Are you saying the second picture is how you want it to look? Or is that how it looks when you have you have I'm confused about what |
I would like it if it looks like second picture or something else altogether instead of rendering blank spaces. And if it could be optional even better seeing there are is no such request from any other user for such a widely used and revered plugin |
## Details Request: #343 Adds `icon` & `highlight` values to `indent` configuration. By default the `icon` is set to the empty string resulting in no change. However when an `icon` is provided, for example: ```lua require('render-markdown').setup({ indent = { enabled = true, per_level = 4, icon = '▎', }, }) ``` We end up with behavior similar to `indent-blankline.nvim`, where each set of 4 spaces starts with the configured icon, giving a quick visual of how far indented the current section is. The icon is not limited to one character, but users will likely choose one that is, otherwise things get cluttered rather quickly.
Gotcha, added this functionality here: 21623a9 For now it's an opt-in feature which you can enable by setting an require 'render-markdown'.setup {
indent = {
enabled = true,
per_level = 4,
icon = '▎',
},
} Thanks for the suggestion! |
I agree, I like the way this one turned out quite a bit :) I decided to add an icon by default and make it opt-out instead of opt-in here: 33673e6 So if you're using the same |
Is your feature request related to a problem? Please describe.
This is not related to any problem but I would like to describe as just a nice to have optional feature.
This will
Describe the solution you'd like
Here is my current related setup
I have created a test markdown file and here is the screenshot of it and after editing it for suggestion
Describe alternatives you've considered
N/A. I would like to look for alternatives but can not even comprehend where to look for.
Additional information
No response
The text was updated successfully, but these errors were encountered: