Closed aniketgm closed 1 month ago
Well, I got what I wanted, with this change in same file as mentioned above. >
indicates new added lines.
> if c.headline_indent then
virt_text[1] = { string.rep(" ", level - 1) .. bullet, { hl_group, bullet_hl_group } }
> else
> virt_text[1] = { bullet .. string.rep(" ", level - 1), { hl_group, bullet_hl_group } }
> end
and then set headline_indent = false
in opts
, which comes up like this, but overall fine.
Description
I use markdown. The heading indentation is an awesome feature, I like it too. But when looking at the text below it. It does not look good. If only the text below would auto indent along with the heading. However, It might be more work than what I suggest below. Let me explain with the screenshot below:
Request / Suggestion
Can we have this indentation as an option without losing the fancy bullets feature ? For example, one could add the following option:
OR, only for markdown
ignore the '#' in heading 3 and 4, I was experimenting a bit.
How did I get the above ? NOTE: I don't know lua (Or still a newbie), however, as a programmer, I tried to understand the best I could, experimented a bit, to get the above. Lukas might know what I did.
For others, I removed the space inside
string.rep
in the linevirt_text[1] = { string.rep(" ", level - 1) .. bullet, { hl_group, bullet_hl_group } }
. File:headlines.nvim\lua\headlines\init.lua
. Doesn't fully get what I wanted though.