Is that possible to keep the rendering in insert mode? #282
-
Is that possible to keep the rendering in insert mode? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Yes, the set of modes this plugin does rendering in is configurable via the 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,
})
I'm not sure what you mean by this, this plugin does not change the height of lines. I don't think that's actually possible to do. I assume you mean something different than how tall each line is, can you give me a specific example, either with a screenshot or some |
Beta Was this translation helpful? Give feedback.
-
@MeanderingProgrammer I've found that if I enable rendering in all modes with render_modes=true, then in insert mode the screen jumps around on each keystroke because the left margin seems to momentarily shrink a bit on each keystroke. Do you have any idea why that might be? I'm using the default left margin configuration in LazyVim on Kitty. Like the OP I'm fundamentally trying to stop the text on the page shifting as I go in and out of insert mode caused by the rendering turning on and off. I think rendering in all modes might be the right solution except for this weird margin thing making it not really usable. |
Beta Was this translation helpful? Give feedback.
Yes, the set of modes this plugin does rendering in is configurable via the
render_modes
option.By default it is set to:
You can add insert mode specifically to it with:
Or you can have it render in all modes (insert, visual, operator pending, etc.) by setting the value to true:
I'm not sure what you mean…