-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugins.vim
64 lines (47 loc) · 2.5 KB
/
plugins.vim
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
" ###############################################################################
" ## ##
" ## 1. PLUGIN LIST & CONFIGURATIONS ##
" ## ##
" ###############################################################################
" 1.1. vim-plug auto-installer
" -------------Auto install vim-plug (from github)------------
" Install vim-plug if not found
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif
" Run PlugInstall if there are missing plugins
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync | source $MYVIMRC
\| endif
" 1.2. Plugin List
call plug#begin()
" -------------------------A. Language------------------------
" ------------------------B. Completion-----------------------
Plug 'jiangmiao/auto-pairs'
" -----------------------C. Code Display----------------------
Plug 'Yggdroot/indentLine' " display indention with thin vertical lines
Plug 'tomasiser/vim-code-dark' " dark color scheme like vscode
" ------------------------D. Interface------------------------
Plug 'mbbill/undotree' " visualise undo history with branches
Plug 'vim-airline/vim-airline' " statusline
Plug 'vim-airline/vim-airline-themes' " theme statusline to match dark color scheme
Plug 'tpope/vim-fugitive' " git integration
" -------------------------E. Commands------------------------
Plug 'tpope/vim-commentary' " lightweight commenting plugin
call plug#end()
" 1.3. Plugin Configurations
" -------------------------A. Language------------------------
" Enable and configure language-related plugins in separate lua script
set completeopt=menu,menuone,noselect
" ------------------------B. Completion-----------------------
" -----------------------C. Code Display----------------------
" configure tomasiser/vim-code-dark
colorscheme codedark
" ------------------------D. Interface------------------------
" configure mbbill/undotree
noremap <leader>u :UndotreeToggle<CR>
" configure vim-airline/vim-airline
let g:airline_theme='minimalist'
let g:airline#extensions#tabline#enabled=1
" -------------------------E. Commands------------------------