You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(options)! allow all window options to be configured, set concealcursor
# Details
Make the `conceal` behavior more generic by wrapping it in a table
of options. All options set a value to use when rendered and when
not rendered. This plugin will handle switching between them.
This is a breaking change for anyone currently setting a custom
`conceal` value like this:
```lua
require('render-markdown').setup({
conceal = {
default = <value_1>,
rendered = <value_2>,
},
})
```
Should instead now do:
```lua
require('render-markdown').setup({
win_options = {
conceallevel = {
default = <value_1>,
rendered = <value_2>,
},
},
})
```
Along with this change have added a default value for `concealcursor`
to continue concealing text in all modes when rendered, otherwise
use the user setting. This way text only changes on mode change
rather than mode change + when your cursor enters a line, though
not everyone prefers this, it is something that can be disabled in config.
With concealed text now being more consistent change the list marker
before checkmarks to be concealed rather than overlayed with spaces.
This resolves: #31.
0 commit comments