Xinqi Bao's Git

feat(nvim): enable remote markdown preview
authorXinqi Bao <[email protected]>
Mon, 12 Oct 2026 14:55:39 +0000 (22:55 +0800)
committerXinqi Bao <[email protected]>
Mon, 12 Oct 2026 14:55:39 +0000 (22:55 +0800)
.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')