diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/goyo-limelight.vim | 4 | ||||
| -rw-r--r-- | modules/markdowm_preview.vim (renamed from modules/markdown-preview.vim) | 24 | ||||
| -rw-r--r-- | modules/plugins.vim | 10 | ||||
| -rw-r--r-- | modules/sneak.vim | 1 | ||||
| -rw-r--r-- | modules/vim_wiki.vim | 4 | 
5 files changed, 27 insertions, 16 deletions
| diff --git a/modules/goyo-limelight.vim b/modules/goyo-limelight.vim index 0749f108..ab3f3441 100644 --- a/modules/goyo-limelight.vim +++ b/modules/goyo-limelight.vim @@ -10,7 +10,7 @@ let g:goy_height=95  function! s:goyo_enter()    "call deoplete#custom#option('auto_complete', v:false) -  set spell spelllang=en_us +  "set spell spelllang=en_us    set wrap    set conceallevel=0    set tw=100 @@ -25,7 +25,7 @@ endfunction  function! s:goyo_leave()    "call deoplete#custom#option('auto_complete', v:true) -  set nospell +  "set nospell    set wrap!    set showcmd    set scrolloff=5 diff --git a/modules/markdown-preview.vim b/modules/markdowm_preview.vim index 5ef9c2b8..1ec85362 100644 --- a/modules/markdown-preview.vim +++ b/modules/markdowm_preview.vim @@ -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}」' + diff --git a/modules/plugins.vim b/modules/plugins.vim index 8cfdbde1..549b4a18 100644 --- a/modules/plugins.vim +++ b/modules/plugins.vim @@ -64,7 +64,9 @@ if dein#load_state('~/.config/nvim/dein')    call dein#add('junegunn/goyo.vim')    call dein#add('junegunn/limelight.vim')    "Markdown viewer TODO Fix this stupid thing -  call dein#add('iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install'  }) +  "call dein#add('iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install'  }) +  call dein#add('iamcco/markdown-preview.nvim', {'on_ft': ['markdown', 'pandoc.markdown', 'rmd'], +					\ 'build': 'sh -c "cd app & yarn install"' })  ""  call dein#add('iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }})  ""  call dein#add('euclio/vim-markdown-composer')    call dein#add('~/.config/nvim/dein/repos/github.com/Shougo/dein.vim') @@ -75,7 +77,7 @@ if dein#load_state('~/.config/nvim/dein')    call dein#add('Shougo/neosnippet-snippets')    call dein#add('mattn/emmet-vim')    " Vim Wiki -  call dein#add('vimwiki/vimwiki') +  "call dein#add('vimwiki/vimwiki')    "echo doc     call dein#add('Shougo/echodoc.vim')    "Colorizer " @@ -96,7 +98,3 @@ endif  if dein#check_install()    call dein#install()  endif - - -" TODO inside dein/repos/ somewhere there are cach and state files which keep -" screwing me for installing new plugins diff --git a/modules/sneak.vim b/modules/sneak.vim new file mode 100644 index 00000000..b3e8f561 --- /dev/null +++ b/modules/sneak.vim @@ -0,0 +1 @@ +let g:sneak#label = 1 diff --git a/modules/vim_wiki.vim b/modules/vim_wiki.vim index 4ebc6b45..84e5e086 100644 --- a/modules/vim_wiki.vim +++ b/modules/vim_wiki.vim @@ -6,9 +6,9 @@ let g:vimwiki_list = [{'path': '~/wiki/',                        \ 'syntax': 'markdown', 'ext': '.md'}]  " TAB in general mode will move to text buffer -nnoremap <TAB> :bnext<CR> +"nnoremap <TAB> :bnext<CR>  " SHIFT-TAB will go back -nnoremap <S-TAB> :bprevious<CR> +"nnoremap <S-TAB> :bprevious<CR>  let g:indentLine_setConceal = 0  let g:indentLine_concealcursor = "" | 
