Open MeanderingProgrammer opened 3 months ago
Some discussions that may or may not be relevant: https://github.com/neovim/neovim/pull/9496
This should hopefully work now after merging: https://github.com/MeanderingProgrammer/markdown.nvim/commit/726c85cb9cc6d7d9c85af6ab093e1ee53b5e3c82.
Will keep this open to track any resulting problems.
Currently the conceal feature is applied to the buffer as a whole. Meaning anything concealed by Neovim / Tree Sitter is able to be hidden in normal mode but shown when the user's cursor enters that line. For example with links the states are:
[link](https://example.com)
link
[link](https://example.com)
win_options
->concealcursor
->rendered
is set to''
Ideally we could do something similar with the virtual text added by this plugin, for example headings would have the following states:
### Heading 3
<symbol> Heading 3
### Heading 3
The tricky part here is we essentially want the opposite behavior of a conceal.
As far as I am aware there is not a builtin feature to support this kind of behavior.
Any solution that involves running an auto command on every cursor movement is
IMO not viable, turns out it was kind of viable.If a feature gets released that adds support for this or if I am missing something that already exists please let me know!
Pulled from original issue: https://github.com/MeanderingProgrammer/markdown.nvim/issues/14