Lazy load goyo vim for markdown only

This commit is contained in:
coolneng 2021-02-22 01:56:08 +01:00
parent 366161284f
commit fe6ce8c033
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ nnoremap <leader>n :noh<cr>
nnoremap <leader>k :m-2<cr>== nnoremap <leader>k :m-2<cr>==
nnoremap <leader>j :m+<cr>== nnoremap <leader>j :m+<cr>==
""Markdown ""Markdown
au FileType markdown Goyo autocmd Filetype markdown Goyo
let g:markdown_fenced_languages = ['cpp', 'python', 'java', 'sql'] let g:markdown_fenced_languages = ['cpp', 'python', 'java', 'sql']
let g:vim_markdown_math=1 let g:vim_markdown_math=1
""Snippets ""Snippets
@ -35,7 +35,7 @@ let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
""Vim-plug ""Vim-plug
call plug#begin('~/.config/nvim/plugged') call plug#begin('~/.config/nvim/plugged')
Plug 'plasticboy/vim-markdown', { 'for': 'markdown' } Plug 'plasticboy/vim-markdown', { 'for': 'markdown' }
Plug 'junegunn/goyo.vim', { 'on': 'Goyo' } Plug 'junegunn/goyo.vim', {'for': 'markdown', 'on': 'Goyo' }
Plug 'SirVer/ultisnips', { 'for': 'markdown' } Plug 'SirVer/ultisnips', { 'for': 'markdown' }
Plug 'Raimondi/delimitMate' Plug 'Raimondi/delimitMate'
Plug 'cocopon/iceberg.vim' Plug 'cocopon/iceberg.vim'