-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
83 lines (66 loc) · 2.26 KB
/
init.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
" __ ____ __ _ ___ _____ __ __ ____ ____
" | \/ \ \ / / | \ | \ \ / /_ _| \/ | _ \ / ___|
" | |\/| |\ V / | \| |\ \ / / | || |\/| | |_) | |
" | | | | | | | |\ | \ V / | || | | | _ <| |
" |_| |_| |_| |_| \_| \_/ |___|_| |_|_| \_\\____|
" Author: @yinghaoyu
" auto install {{
" for first time
if empty(glob($HOME.'/.config/nvim/autoload/plug.vim'))
silent !curl -fLo $HOME/.config/nvim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
if empty(glob($HOME.'/.config/nvim/plugged/coc.nvim/autoload/coc.vim'))
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" }}
" let g:plug_url_format='https://hub.fastgit.xyz/%s.git'
" plugin menu {{
call plug#begin('$HOME/.config/nvim/plugged')
" completion
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'jiangmiao/auto-pairs'
" taglist
Plug 'liuchengxu/vista.vim'
" find & replace
Plug 'nvim-lua/plenary.nvim' " nvim-spectre dep
Plug 'nvim-pack/nvim-spectre'
" markdown
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' }
Plug 'dhruvasagar/vim-table-mode', { 'on': 'TableModeToggle', 'for': ['text', 'markdown', 'vim-plug'] }
Plug 'mzlogin/vim-markdown-toc', { 'for': ['gitignore', 'markdown', 'vim-plug'] }
" vim color
Plug 'yinghaoyu/nvim-deus'
" editor enhancement
Plug 'godlygeek/tabular'
Plug 'tpope/vim-surround'
Plug 'lambdalisue/vim-suda'
" visual enhancement
Plug 'luochen1990/rainbow'
"Plug 'mg979/vim-xtabline'
Plug 'RRethy/vim-hexokinase', { 'do': 'make hexokinase' }
Plug 'RRethy/vim-illuminate'
Plug 'ryanoasis/vim-devicons'
Plug 'kyazdani42/nvim-web-devicons'
Plug 'Yggdroot/indentLine'
" status line
Plug 'yinghaoyu/eleline.vim'
Plug 'ojroques/vim-scrollstatus'
" undo tree
Plug 'mbbill/undotree'
" git
Plug 'airblade/vim-gitgutter'
Plug 'cohama/agit.vim' " for git log
" writting
Plug 'junegunn/goyo.vim'
Plug 'reedes/vim-wordy'
call plug#end()
" }}
" neovim resource files
for s:path in split(glob($HOME.'/.config/nvim/*.vim'), "\n")
if s:path ==? $HOME.'/.config/nvim/init.vim'
continue
endif
execute 'source ' . s:path
endfor