From 22f6449a495f4beeaa82853da9dafc0c151daaf2 Mon Sep 17 00:00:00 2001 From: Niccolo Borgioli Date: Thu, 7 Apr 2022 15:42:55 +0200 Subject: [PATCH] vscode performance --- files/vimrc | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/files/vimrc b/files/vimrc index d5e5cf6..ea5109b 100644 --- a/files/vimrc +++ b/files/vimrc @@ -19,13 +19,16 @@ nmap (easymotion-bd-w) call plug#begin('~/.vim/plugged') -Plug 'morhetz/gruvbox' -Plug 'scrooloose/nerdtree' -Plug 'itchyny/lightline.vim' -Plug 'junegunn/fzf' -Plug 'junegunn/fzf.vim' -Plug 'editorconfig/editorconfig-vim' -Plug 'asvetliakov/vim-easymotion' +function! Cond(cond, ...) + let opts = get(a:000, 0, {}) + return a:cond ? opts : extend(opts, { 'on': [], 'for': [] }) +endfunction + +Plug 'morhetz/gruvbox', Cond(!exists('g:vscode')) +Plug 'scrooloose/nerdtree', Cond(!exists('g:vscode')) +Plug 'itchyny/lightline.vim', Cond(!exists('g:vscode')) +Plug 'editorconfig/editorconfig-vim', Cond(!exists('g:vscode')) +Plug 'asvetliakov/vim-easymotion', Cond(exists('g:vscode'), { 'as': 'vsc-easymotion' }) Plug 'tpope/vim-surround' call plug#end()