-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcustom_plugins.vim
79 lines (60 loc) · 1.47 KB
/
custom_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
" Plugins
" =======
" colors
Plug 'https://github.com/aclissold/lunarized-syntax'
" tools
Plug 'fatih/vim-go'
Plug 'itchyny/lightline.vim'
Plug 'JamshedVesuna/vim-markdown-preview'
Plug 'junegunn/goyo.vim'
Plug 'posva/vim-vue'
Plug 'reedes/vim-lexical'
Plug 'reedes/vim-pencil'
Plug 'reedes/vim-colors-pencil'
Plug 'reedes/vim-wheel'
Plug 'tpope/vim-fugitive'
Plug 'w0rp/ale'
" Functions
" =========
function! LightLineGitGutter()
if exists('*GitGutterGetHunkSummary')
let [ added, modified, removed ] = GitGutterGetHunkSummary()
return printf('+%d ~%d -%d', added, modified, removed)
endif
return ''
endfunction
" Plugin options
" ==============
" ALE
" ---
" to save battery life we don't want to lint as we type
" (ALE will lint on save by default)
let g:ale_lint_on_text_changed = 'never'
" Lightline
" ---------
let g:lightline = {
\ 'colorscheme': 'wombat',
\ 'active': {
\ 'left': [ [ 'mode', 'paste'],
\ [ 'gitgutter', 'readonly', 'filename', 'modified' ] ],
\ 'right': [ [ 'lineinfo' ], ['percent'] ]
\ },
\ 'component_function': {
\ 'gitgutter': 'LightLineGitGutter',
\ },
\ }
" NERDTree
" --------
" show hidden files by default
let NERDTreeShowHidden = 1
" WRITING
" =======
" Pencil
" ------
augroup pencil
autocmd!
autocmd FileType markdown,mkd call pencil#init()
\ | call lexical#init()
augroup END
let g:markdown_syntax_conceal = 0
let g:pencil#conceallevel = 0