-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugins.vim
170 lines (124 loc) · 3.91 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
let s:runtime_dir = DotvimPath() . '/.runtime'
let s:autoload_dir = s:runtime_dir . '/autoload'
if !isdirectory(s:autoload_dir)
call mkdir(s:autoload_dir, 'p')
endif
execute 'set runtimepath+=' . s:runtime_dir
let s:plug_path = s:autoload_dir . '/plug.vim'
if empty(glob(s:plug_path))
echo "Looks like the first time setup for vim-plug..."
if executable("curl")
silent exe '!curl -fLo ' . s:plug_path ' --create-dirs ' .
\ 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
elseif executable("wget")
silent exe '!wget -q -O ' . s:plug_path
\ 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
else
echoerr "You need to install curl (or wget, but curl is good)"
quit
endif
autocmd VimEnter * PlugInstall | execute "source " . DotvimPath() . '/init.vim'
endif
" Settings {{
" let g:SuperTabDefaultCompletionType = "<c-n>"
let g:switch_custom_definitions =
\ [
\ {'\<==\>': '\<!=\>', '\<!=\>': '\<==\>'}
\ ]
" CppUTest test macros
let s:switch_cpputest = {
\ '\<TEST\>': 'IGNORE_TEST',
\ '\<IGNORE_TEST\>': 'TEST' }
autocmd Filetype cpp let b:switch_custom_definitions =
\ [
\ s:switch_cpputest
\ ]
autocmd Filetype python let b:switch_custom_definitions =
\ [
\ ['\<or\>', '\<and\>'],
\ ]
" I will be integrating bufferline into my own statusline.
let g:bufferline_echo = 0
let g:commentary_map_backslash = 0
" let g:ale_linters = {'python': ['pylint']}
let g:indentLine_setColors = 1
let g:indentLine_setConceal = 0
let g:indentLine_color_term = 236
" indentline plugin hides quotes and stuff in JSON files. Ew.
autocmd FileType json :IndentLinesDisable
let g:snipMate = { 'snippet_version': 1 }
autocmd FileType json :IndentLinesDisable
let g:snipMate = { 'snippet_version': 1 }
" }}
" Use DotvimPath() for full standalone installation. :)
call plug#begin(DotvimPath() . '/.plugged')
Plug 'altercation/vim-colors-solarized'
Plug 'lifepillar/vim-solarized8'
" So much Tim Pope...
Plug 'tpope/vim-surround'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-dispatch'
Plug 'tpope/vim-unimpaired'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-scriptease'
" I've grown attached to Gblame
command! Gblame Git blame
" Plug 'nathanaelkane/vim-indent-guides'
Plug 'Yggdroot/indentLine'
Plug 'airblade/vim-gitgutter'
Plug 'tmhedberg/matchit'
Plug 'vim-scripts/python_match.vim'
Plug 'vim-scripts/python.vim'
Plug 'justinmk/vim-dirvish'
Plug 'MarcWeber/vim-addon-mw-utils'
Plug 'tomtom/tlib_vim'
Plug 'garbas/vim-snipmate'
Plug 'ervandew/supertab'
Plug 'embear/vim-localvimrc'
Plug 'jiangmiao/auto-pairs'
Plug 'AndrewRadev/switch.vim'
Plug 'bling/vim-bufferline'
" Lint
Plug 'ynkdir/vim-vimlparser'
Plug 'syngan/vim-vimlint'
Plug 'thinca/vim-themis'
Plug 'rust-lang/rust.vim'
Plug 'tpope/vim-abolish'
if !has('nvim')
" Only use ALE on regular Vim
Plug 'w0rp/ale'
endif
Plug 'tpope/vim-endwise'
Plug 'mikewadsten/snipsnip.vim'
Plug 'tpope/vim-sleuth'
" udev rules!
Plug 'vim-scripts/syntaxudev.vim'
" Switching between .c and .h files easily
Plug 'vim-scripts/a.vim'
Plug 'Vimjas/vim-python-pep8-indent'
Plug 'wellle/targets.vim'
if has('nvim')
Plug 'neovim/nvim-lspconfig'
Plug 'ray-x/lsp_signature.nvim'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
if has('nvim-0.8')
Plug 'SmiteshP/nvim-navic'
Plug 'utilyre/barbecue.nvim'
endif
Plug 'debugloop/telescope-undo.nvim'
endif
if filereadable(expand('~/.vimrc.plugins.digi'))
source ~/.vimrc.plugins.digi
endif
" TODO: vim-over?
call plug#end()
call LoadDotvimFile('cscope.vim')
" Total hack
augroup mikeInitReloadPlugins
autocmd!
" After each write to this init.vim file, source it.
let s:plugins_file_path = resolve(expand('<sfile>:p'))
execute 'autocmd! BufWritePost ' . s:plugins_file_path . " source " . s:plugins_file_path
augroup END