Inserting a code block delays real-time previews
Hello!! Markdown-preview works pretty well in my environment. But adding a code block delays the real-time preview. Everything else works fine, but when I move the cursor in the code, the display being moved to Chrome is delayed. Do you need any settings?
[issue]
code block
[Environment] Ubuntu 20
.config │ nvim ├── colors │ └── material-monokai.vim ├── dein.toml ├── dein_lazy.toml ├── functions.rc.vim ├── init.vim ├── keymap.rc.vim ├── options.rc.vim ├── plugins └── snippets ├── c.snip └── markdown.snip
dein.toml
.
.
.
[[plugins]]
repo = 'iamcco/markdown-preview.nvim'
on_ft = ['markdown', 'pandoc.mardown', 'rmd']
build = 'sh -c "cd app & yarn install"'
hook_add = '''
let g:mkdp_refresh_slow = 1
let g:mkdp_command_for_global = 1
let g:mkdp_open_to_the_world = 1
let g:mkdp_echo_preview_url = 1
'''
I don't know what does display being moved to Chrome is delayed mean.
Sorry, My english is bad. Fisrt, run MarkdownPreview to edit markdown in vim. For example, on vim, move the markdown from line 10 to line 50 in normal mode. Then, the markdown displayed on chorme will follow the movement and immediately display the part 50 lines. However, the chorme is very slow to display with a markdown file containing code blocks.
I found that the following options were the cause. I don't know the details, but I set this option to 0 (default).
let g:mkdp_refresh_slow = 1
↓
let g:mkdp_refresh_slow = 1
Thank you.