dotfiles/nvim/lib/plugins.vim

83 lines
2 KiB
VimL
Raw Normal View History

2019-05-14 15:45:14 +00:00
let s:vim_config_dir = expand('~/.config/nvim')
let s:vim_plug_script = s:vim_config_dir . '/autoload/plug.vim'
let s:vim_plug_home = s:vim_config_dir . '/plugged'
let s:just_installed_vim_plug = 0
if !filereadable(s:vim_plug_script)
exe '!curl -fL https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim --create-dirs -o' shellescape(s:vim_plug_script)
autocmd VimEnter * PlugInstall --sync
endif
2019-05-14 15:45:14 +00:00
call plug#begin(s:vim_config_dir . '/plugged')
2019-05-14 15:45:14 +00:00
Plug 'junegunn/vim-plug'
2019-05-14 15:45:14 +00:00
" Files {{{
Plug 'tpope/vim-eunuch'
Plug 'francoiscabrol/ranger.vim'
" }}}
2019-05-14 15:45:14 +00:00
" Editing {{{
Plug 'easymotion/vim-easymotion'
Plug 'junegunn/vim-easy-align'
Plug 'Raimondi/delimitMate'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-surround'
Plug 'Yggdroot/indentLine'
Plug 'henrik/vim-indexed-search'
Plug 'andymass/vim-matchup'
Plug 'tommcdo/vim-exchange'
Plug 'inkarkat/vim-ingo-library' " required by LineJuggler
Plug 'inkarkat/vim-LineJuggler', { 'branch': 'stable' }
Plug 'reedes/vim-pencil'
" }}}
2019-05-14 15:45:14 +00:00
" Text objects {{{
Plug 'kana/vim-textobj-user'
Plug 'kana/vim-textobj-entire'
Plug 'kana/vim-textobj-line'
Plug 'kana/vim-textobj-indent'
" Plug 'kana/vim-textobj-fold'
" }}}
2019-05-14 15:45:14 +00:00
" UI {{{
Plug 'moll/vim-bbye'
Plug 'gerw/vim-HiLinkTrace'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'wincent/terminus'
Plug 'tpope/vim-obsession'
Plug 'romainl/vim-qf'
Plug 'dyng/ctrlsf.vim'
" }}}
2019-05-14 15:45:14 +00:00
" Git {{{
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-rhubarb'
Plug 'airblade/vim-gitgutter'
" }}}
2019-05-14 15:45:14 +00:00
" FZF {{{
Plug 'junegunn/fzf', { 'do': './install --bin' }
Plug 'junegunn/fzf.vim'
" }}}
2019-05-14 15:45:14 +00:00
" Programming {{{
Plug 'sheerun/vim-polyglot'
Plug 'neoclide/coc.nvim', { 'do': 'yarn install' }
Plug 'dag/vim2hs'
" }}}
2019-05-14 15:45:14 +00:00
call plug#end()
" " Automatically install/clean plugins (because I'm a programmer) {{{
augroup vimrc-plugins
autocmd!
autocmd VimEnter *
\ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync | q
\| endif
augroup END
" " }}}