From 65aad59ef0802708a8a7c8a312755232cc1823d3 Mon Sep 17 00:00:00 2001 From: subh Date: Mon, 19 Jan 2026 21:47:02 +0530 Subject: initial commit --- .vim/plugins.vim | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .vim/plugins.vim (limited to '.vim/plugins.vim') diff --git a/.vim/plugins.vim b/.vim/plugins.vim new file mode 100644 index 0000000..a59933f --- /dev/null +++ b/.vim/plugins.vim @@ -0,0 +1,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') + -- cgit v1.2.3