Xinqi Bao's Git

feat(nvim): enable remote markdown preview
[dotfiles.git] / .config / nvim / init.vim
index 32c39ac..0a5fc86 100644 (file)
@@ -224,6 +224,12 @@ if has_key(plugs, 'lazygit.nvim')
     nnoremap <silent> <leader>lg :LazyGit<CR>
 endif
 
+" Markdown
+if has_key(plugs, 'markdown-preview.nvim')
+    let g:mkdp_echo_preview_url = 1
+    let g:mkdp_open_to_the_world = 1
+endif
+
 " Optional
 if has_key(plugs, 'avante.nvim')
     lua require('plugin-config/avante')