Teach Vim to lazily load minpac only when necessary, rather than all the time - it won't even be installed if it isn't needed
This commit is contained in:
parent
94c71b0d7d
commit
1725d1bc14
2 changed files with 56 additions and 49 deletions
49
config/vim/plugins.vim
Normal file
49
config/vim/plugins.vim
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
silent! packadd minpac
|
||||||
|
if !exists('*minpac#init')
|
||||||
|
silent !git clone https://github.com/k-takata/minpac.git $XDG_CACHE_HOME/vim/pack/minpac/opt/minpac
|
||||||
|
augroup minpac
|
||||||
|
autocmd!
|
||||||
|
autocmd VimEnter * call minpac#update()
|
||||||
|
augroup END
|
||||||
|
endif
|
||||||
|
|
||||||
|
packadd minpac
|
||||||
|
|
||||||
|
call minpac#init({'dir': $XDG_CACHE_HOME . '/vim'})
|
||||||
|
call minpac#add('k-takata/minpac', {'type': 'opt'})
|
||||||
|
call minpac#add('tpope/vim-sensible')
|
||||||
|
|
||||||
|
call minpac#add('ciaranm/inkpot', {'do': 'colorscheme inkpot'})
|
||||||
|
call minpac#add('editorconfig/editorconfig-vim')
|
||||||
|
call minpac#add('ervandew/supertab')
|
||||||
|
call minpac#add('jamessan/vim-gnupg')
|
||||||
|
call minpac#add('junegunn/fzf')
|
||||||
|
call minpac#add('junegunn/fzf.vim')
|
||||||
|
call minpac#add('junegunn/vim-easy-align')
|
||||||
|
call minpac#add('scrooloose/nerdtree')
|
||||||
|
call minpac#add('tpope/vim-repeat')
|
||||||
|
call minpac#add('tpope/vim-sleuth')
|
||||||
|
call minpac#add('tpope/vim-surround')
|
||||||
|
call minpac#add('tpope/vim-unimpaired')
|
||||||
|
call minpac#add('vim-airline/vim-airline')
|
||||||
|
call minpac#add('vim-airline/vim-airline-themes')
|
||||||
|
call minpac#add('wincent/loupe')
|
||||||
|
call minpac#add('wincent/terminus')
|
||||||
|
|
||||||
|
call minpac#add('LaTeX-Box-Team/LaTeX-Box')
|
||||||
|
call minpac#add('vhda/verilog_systemverilog.vim')
|
||||||
|
call minpac#add('sheerun/vim-polyglot')
|
||||||
|
call minpac#add('sukima/xmledit')
|
||||||
|
|
||||||
|
call minpac#add('lepture/vim-jinja')
|
||||||
|
|
||||||
|
call minpac#add('alx741/yesod.vim')
|
||||||
|
call minpac#add('pbrisbin/vim-syntax-shakespeare')
|
||||||
|
|
||||||
|
if has('neovim') || exists('*ch_close_in')
|
||||||
|
call minpac#add('w0rp/ale')
|
||||||
|
endif
|
||||||
|
|
||||||
|
if has('macunix')
|
||||||
|
call minpac#add('itspriddle/vim-marked')
|
||||||
|
endif
|
|
@ -7,61 +7,19 @@ function! s:ensure_dir(dir)
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
silent! packadd minpac
|
command! PackUpdate source $XDG_CONFIG_HOME/vim/plugins.vim | call minpac#update()
|
||||||
if !exists('*minpac#init')
|
command! PackClean source $XDG_CONFIG_HOME/vim/plugins.vim | call minpac#clean()
|
||||||
silent !git clone https://github.com/k-takata/minpac.git $XDG_CACHE_HOME/vim/pack/minpac/opt/minpac
|
|
||||||
augroup minpac
|
silent! packadd vim-sensible
|
||||||
autocmd!
|
if !exists('g:loaded_sensible')
|
||||||
autocmd VimEnter * call minpac#update()
|
PackUpdate
|
||||||
augroup END
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
packadd minpac
|
|
||||||
|
|
||||||
call minpac#init({'dir': $XDG_CACHE_HOME . '/vim'})
|
|
||||||
call minpac#add('k-takata/minpac', {'type': 'opt'})
|
|
||||||
call minpac#add('tpope/vim-sensible')
|
|
||||||
|
|
||||||
call minpac#add('ciaranm/inkpot', {'do': 'colorscheme inkpot'})
|
|
||||||
call minpac#add('editorconfig/editorconfig-vim')
|
|
||||||
call minpac#add('ervandew/supertab')
|
|
||||||
call minpac#add('jamessan/vim-gnupg')
|
|
||||||
call minpac#add('junegunn/fzf')
|
|
||||||
call minpac#add('junegunn/fzf.vim')
|
|
||||||
call minpac#add('junegunn/vim-easy-align')
|
|
||||||
call minpac#add('scrooloose/nerdtree')
|
|
||||||
call minpac#add('tpope/vim-repeat')
|
|
||||||
call minpac#add('tpope/vim-sleuth')
|
|
||||||
call minpac#add('tpope/vim-surround')
|
|
||||||
call minpac#add('tpope/vim-unimpaired')
|
|
||||||
call minpac#add('vim-airline/vim-airline')
|
|
||||||
call minpac#add('vim-airline/vim-airline-themes')
|
|
||||||
call minpac#add('wincent/loupe')
|
|
||||||
call minpac#add('wincent/terminus')
|
|
||||||
|
|
||||||
call minpac#add('LaTeX-Box-Team/LaTeX-Box')
|
|
||||||
call minpac#add('vhda/verilog_systemverilog.vim')
|
|
||||||
call minpac#add('sheerun/vim-polyglot')
|
|
||||||
call minpac#add('sukima/xmledit')
|
|
||||||
|
|
||||||
call minpac#add('lepture/vim-jinja')
|
|
||||||
|
|
||||||
call minpac#add('alx741/yesod.vim')
|
|
||||||
call minpac#add('pbrisbin/vim-syntax-shakespeare')
|
|
||||||
|
|
||||||
if has('neovim') || exists('*ch_close_in')
|
|
||||||
call minpac#add('w0rp/ale')
|
|
||||||
endif
|
|
||||||
|
|
||||||
if has('macunix')
|
|
||||||
call minpac#add('itspriddle/vim-marked')
|
|
||||||
endif
|
|
||||||
|
|
||||||
silent! colorscheme inkpot
|
|
||||||
augroup transparent_term
|
augroup transparent_term
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd ColorScheme * highlight Normal ctermbg=NONE
|
autocmd ColorScheme * highlight Normal ctermbg=NONE
|
||||||
augroup END
|
augroup END
|
||||||
|
silent! colorscheme inkpot
|
||||||
|
|
||||||
inoremap jj <Esc>
|
inoremap jj <Esc>
|
||||||
nnoremap <C-t> :Files<CR>
|
nnoremap <C-t> :Files<CR>
|
||||||
|
|
Loading…
Reference in a new issue