~gpanders/dotfiles

ref: c8e63bac959db19c138dcc3198a56514f0b444ff dotfiles/.vim/plugin/minpac.vim -rw-r--r-- 2.7 KiB
c8e63bacGreg Anders Manage dotfiles directly in home directory 1 year, 4 months ago
                                                                                
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
let s:save_cpo = &cpo
set cpo&vim

function! s:PackInit()
    silent! packadd minpac

    if exists('*minpac#init')
        call minpac#init()
        call minpac#add('k-takata/minpac', {'type': 'opt'})

        call minpac#add('gpanders/vim-man', {'type': 'opt'})
        call minpac#add('gpanders/vim-oldfiles')

        " Tim Pope plugin suite
        call minpac#add('tpope/vim-fugitive')
        call minpac#add('tpope/vim-surround')
        call minpac#add('tpope/vim-repeat')
        call minpac#add('tpope/vim-commentary')
        call minpac#add('tpope/vim-dispatch')
        call minpac#add('tpope/vim-projectionist')
        call minpac#add('tpope/vim-rsi')
        call minpac#add('tpope/vim-eunuch')
        call minpac#add('tpope/vim-abolish')
        call minpac#add('tpope/vim-scriptease')
        call minpac#add('tpope/vim-obsession')

        " Better directory browser
        call minpac#add('justinmk/vim-dirvish')

        " Align lines to a character, e.g. =, ;, :, etc.
        call minpac#add('junegunn/vim-easy-align')

        " Show change signs in the gutter for git files
        call minpac#add('mhinz/vim-signify')

        " Auto generate tags files
        call minpac#add('ludovicchabant/vim-gutentags')

        " Populate results of :ilist and :dlist in quickfix window
        call minpac#add('romainl/vim-qlist')

        " Visualize undo tree
        call minpac#add('simnalamburt/vim-mundo')

        " Language Packs {{{

        " xdc {{{
        call minpac#add('amal-khailtash/vim-xdc-syntax')
        " }}}

        " fish {{{
        call minpac#add('georgewitteman/vim-fish')
        " }}}

        " Python {{{
        " Provides compilers for flake8 and pylint
        call minpac#add('drgarcia1986/python-compilers.vim')
        " }}}

        " LaTeX {{{
        call minpac#add('lervag/vimtex')
        " }}}

        " Markdown {{{
        call minpac#add('tpope/vim-markdown')
        " }}}

        " scdoc {{{
        call minpac#add('gpanders/vim-scdoc')
        " }}}

        " }}}

        " Asynchronous linting
        call minpac#add('dense-analysis/ale')

        " Colorschemes
        call minpac#add('gpanders/base16-vim', {'type': 'opt'})
    endif
endfunction

function! s:PackUpdate()
    call s:PackInit()
    if exists('*minpac#update')
        call minpac#update('', {'do': 'call minpac#status()'})
    endif
endfunction

function! s:PackClean()
    call s:PackInit()
    if exists('*minpac#clean')
        call minpac#clean()
    endif
endfunction

augroup minpac
    autocmd!
    exe 'autocmd BufWritePost ' . expand('<sfile>') . ' source <afile>'
augroup END

command! PackUpdate call <SID>PackUpdate()
command! PackClean call <SID>PackClean()

let &cpo = s:save_cpo
unlet s:save_cpo