forked from tonybanters/vim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugins.vim
More file actions
28 lines (24 loc) · 844 Bytes
/
plugins.vim
File metadata and controls
28 lines (24 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
" plugins.vim - Dead simple plugin manager
" Just source this file in your vimrc
let s:plugin_dir = expand('~/.vim/plugged')
" Install a plugin if it doesn't exist
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
" Your plugins
call s:ensure('junegunn/fzf')
call s:ensure('junegunn/fzf.vim')
call s:ensure('tomasiser/vim-code-dark')
call s:ensure('ghifarit53/tokyonight-vim')
call s:ensure('yegappan/lsp')
call s:ensure('ojroques/vim-oscyank')
call s:ensure('tpope/vim-commentary')
call s:ensure('itchyny/lightline.vim')