blob: a59933f0c86e727404b3488750de34b80bcd2338 (
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('ghifarit53/tokyonight-vim')
call s:ensure('junegunn/fzf')
call s:ensure('junegunn/fzf.vim')
call s:ensure('itchyny/lightline.vim')
|