iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.84k stars 285 forks source link

let g:mkdp_command_for_globa not work #293

Open fecet opened 3 years ago

fecet commented 3 years ago

Describe the bug

I had set let g:mkdp_command_for_globa=1 but still can't find MarkdownPreview in file .rmd.

My current solution is set

au BufNewFile,BufRead *.Rmd,*.rmd,*.Smd,*.smd   setf markdown

but the auto start feature still can't work in *.rmd, my nvimrc is

let g:mkdp_auto_start = 1
let g:mkdp_command_for_global = 1
let g:mkdp_echo_preview_url = 1
let g:mkdp_open_to_the_world = 1
iamcco commented 3 years ago

It have MarkdownPreview command ?

auto start doesn't not include rmd https://github.com/iamcco/markdown-preview.nvim/blob/master/plugin/mkdp.vim#L125, need to change that.