From fe6ce8c0339e857f340cb5ecab27628b8d267fd1 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 22 Feb 2021 01:56:08 +0100 Subject: [PATCH] Lazy load goyo vim for markdown only --- neovim/.config/nvim/init.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim index c41b724..33d2aad 100644 --- a/neovim/.config/nvim/init.vim +++ b/neovim/.config/nvim/init.vim @@ -25,7 +25,7 @@ nnoremap n :noh nnoremap k :m-2== nnoremap j :m+== ""Markdown -au FileType markdown Goyo +autocmd Filetype markdown Goyo let g:markdown_fenced_languages = ['cpp', 'python', 'java', 'sql'] let g:vim_markdown_math=1 ""Snippets @@ -35,7 +35,7 @@ let g:UltiSnipsJumpBackwardTrigger = '' ""Vim-plug call plug#begin('~/.config/nvim/plugged') 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 'Raimondi/delimitMate' Plug 'cocopon/iceberg.vim'