Skip to content

Is that possible to keep the rendering in insert mode? #282

Discussion options

You must be logged in to vote

Is that possible to keep the rendering in insert mode?

Yes, the set of modes this plugin does rendering in is configurable via the render_modes option.

By default it is set to:

require('render-markdown').setup({
    render_modes = { 'n', 'c', 't' },
})

You can add insert mode specifically to it with:

require('render-markdown').setup({
    render_modes = { 'n', 'c', 't', 'i' },
})

Or you can have it render in all modes (insert, visual, operator pending, etc.) by setting the value to true:

require('render-markdown').setup({
    render_modes = true,
})

But everytime when I edit the file, the insert mode will change the height of each lines. It feels very werid.

I'm not sure what you mean…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@sgon00
Comment options

@sgon00
Comment options

@MeanderingProgrammer
Comment options

@sgon00
Comment options

Answer selected by MeanderingProgrammer
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants