|
@@ -1,4 +1,4 @@
|
|
|
-" set to 1, the nvim will open the preview window once enter the markdown buffer
|
|
|
+" set to 1, nvim will open the preview window after entering the markdown buffer
|
|
|
" default: 0
|
|
|
let g:mkdp_auto_start = 1
|
|
|
|
|
@@ -7,21 +7,21 @@ let g:mkdp_auto_start = 1
|
|
|
" default: 1
|
|
|
let g:mkdp_auto_close = 1
|
|
|
|
|
|
-" set to 1, the vim will just refresh markdown when save the buffer or
|
|
|
+" set to 1, the vim will refresh markdown when save the buffer or
|
|
|
" leave from insert mode, default 0 is auto refresh markdown as you edit or
|
|
|
" move the cursor
|
|
|
" default: 0
|
|
|
let g:mkdp_refresh_slow = 0
|
|
|
|
|
|
" set to 1, the MarkdownPreview command can be use for all files,
|
|
|
-" by default it just can be use in markdown file
|
|
|
+" by default it can be use in markdown file
|
|
|
" default: 0
|
|
|
let g:mkdp_command_for_global = 0
|
|
|
|
|
|
" set to 1, preview server available to others in your network
|
|
|
-" by default, the server only listens on localhost (127.0.0.1)
|
|
|
+" by default, the server listens on localhost (127.0.0.1)
|
|
|
" default: 0
|
|
|
-let g:mkdp_open_to_the_world = 0
|
|
|
+let g:mkdp_open_to_the_world = 1
|
|
|
|
|
|
" use custom IP to open preview page
|
|
|
" useful when you work in remote vim and preview on local browser
|
|
@@ -52,20 +52,32 @@ let g:mkdp_browserfunc = ''
|
|
|
" middle: mean the cursor position alway show at the middle of the preview page
|
|
|
" top: mean the vim top viewport alway show at the top of the preview page
|
|
|
" relative: mean the cursor position alway show at the relative positon of the preview page
|
|
|
+" hide_yaml_meta: if hide yaml metadata, default is 1
|
|
|
+" sequence_diagrams: js-sequence-diagrams options
|
|
|
let g:mkdp_preview_options = {
|
|
|
\ 'mkit': {},
|
|
|
\ 'katex': {},
|
|
|
\ 'uml': {},
|
|
|
\ 'maid': {},
|
|
|
\ 'disable_sync_scroll': 0,
|
|
|
- \ 'sync_scroll_type': 'middle'
|
|
|
+ \ 'sync_scroll_type': 'middle',
|
|
|
+ \ 'hide_yaml_meta': 1,
|
|
|
+ \ 'sequence_diagrams': {},
|
|
|
+ \ 'flowchart_diagrams': {}
|
|
|
\ }
|
|
|
|
|
|
" use a custom markdown style must be absolute path
|
|
|
+" like '/Users/username/markdown.css' or expand('~/markdown.css')
|
|
|
let g:mkdp_markdown_css = ''
|
|
|
|
|
|
" use a custom highlight style must absolute path
|
|
|
+" like '/Users/username/highlight.css' or expand('~/highlight.css')
|
|
|
let g:mkdp_highlight_css = ''
|
|
|
|
|
|
" use a custom port to start server or random for empty
|
|
|
let g:mkdp_port = ''
|
|
|
+
|
|
|
+" preview page title
|
|
|
+" ${name} will be replace with the file name
|
|
|
+let g:mkdp_page_title = '「${name}」'
|
|
|
+
|