blob: 4b26afd2c2b1bee80c2a59b61c6a362adfdd6b34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
let s:plugin_dir = expand('~/vim/plugged')
function! s:ensure(repo)
let name = split(a:repo, '/')[-1]
let path = s:plugin_dir . '/' . name
if !isdirectory(path)
if !isdirectory(s:plugin_dir)
call mkdir(s:plugin_dir, 'p')
endif
execute '!git clone --depth=1 https://github.com/' . a:repo . ' ' . shellescape(path)
endif
execute 'set runtimepath+=' . fnameescape(path)
endfunction
call s:ensure('sainnhe/gruvbox-material')
call s:ensure('junegunn/fzf')
call s:ensure('junegunn/fzf.vim')
call s:ensure('itchyny/lightline.vim')
|