Xinqi Bao's Git
projects
/
dotfiles.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
feat(nvim): enable remote markdown preview
[dotfiles.git]
/
.config
/
nvim
/
init.vim
diff --git
a/.config/nvim/init.vim
b/.config/nvim/init.vim
index
32c39ac
..
0a5fc86
100644
(file)
--- a/
.config/nvim/init.vim
+++ b/
.config/nvim/init.vim
@@
-224,6
+224,12
@@
if has_key(plugs, 'lazygit.nvim')
nnoremap <silent> <leader>lg :LazyGit<CR>
endif
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')
" Optional
if has_key(plugs, 'avante.nvim')
lua require('plugin-config/avante')