markdown-preview.nvim icon indicating copy to clipboard operation
markdown-preview.nvim copied to clipboard

Inserting a code block delays real-time previews

Open KeiPay opened this issue 5 years ago • 3 comments

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 '''

KeiPay avatar May 07 '20 13:05 KeiPay

I don't know what does display being moved to Chrome is delayed mean.

iamcco avatar May 07 '20 15:05 iamcco

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.

KeiPay avatar May 08 '20 13:05 KeiPay

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.

KeiPay avatar Sep 28 '20 13:09 KeiPay