~gpanders/dotfiles

b8d46b279952ad10d5c2f7a557e295c2faf420f5 — Greg Anders 2 years ago 6938f7d
Switch to using minpac for vim packages
7 files changed, 46 insertions(+), 110 deletions(-)

M .gitmodules
M vim/.gitignore
A vim/.vim/pack/minpac/opt/minpac
D vim/.vim/packages.vim
A vim/.vim/plugin/minpac.vim
M vim/.vim/plugin/pack_install.vim
D vim/.vim/vimplug-plugins.vim
M .gitmodules => .gitmodules +4 -0
@@ 2,3 2,7 @@
	path = tmux/.tmux/plugins/tpm
	url = https://github.com/tmux-plugins/tpm
	branch = master
[submodule "minpac"]
	path = vim/.vim/pack/minpac/opt/minpac
	url = https://github.com/k-takata/minpac
	branch = master

M vim/.gitignore => vim/.gitignore +2 -1
@@ 1,5 1,6 @@
.vim/.netrwhist
.vim/plug
.vim/session
.vim/pack
.vim/pack/*
!.vim/pack/minpac/opt/minpac
.vim/cache

A vim/.vim/pack/minpac/opt/minpac => vim/.vim/pack/minpac/opt/minpac +1 -0
@@ 0,0 1,1 @@
Subproject commit 597864668f7e23827d454239cd02c1ad12ab8cf1

D vim/.vim/packages.vim => vim/.vim/packages.vim +0 -24
@@ 1,24 0,0 @@
PackInstall 
      \ tpope/vim-unimpaired
      \ tpope/vim-fugitive
      \ tpope/vim-surround
      \ tpope/vim-repeat
      \ tpope/vim-commentary
      \ tpope/vim-rhubarb
      \ tpope/vim-dispatch
      \ tpope/vim-rsi
      \ justinmk/vim-dirvish
      \ justinmk/vim-sneak
      \ junegunn/fzf.vim
      \ junegunn/limelight.vim
      \ junegunn/goyo.vim
      \ airblade/vim-gitgutter
      \ ludovicchabant/vim-gutentags
      \ mhinz/vim-startify
      \ jpalardy/vim-slime
      \ davidhalter/jedi-vim
      \ romainl/vim-qf

PackInstallOpt 
      \ joshdick/onedark.vim
      \ lifepillar/vim-solarized8

A vim/.vim/plugin/minpac.vim => vim/.vim/plugin/minpac.vim +34 -0
@@ 0,0 1,34 @@
function! s:PackInit()
  packadd minpac

  if exists('*minpac#init')
    call minpac#init()

    call minpac#add('tpope/vim-unimpaired')
    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-rhubarb')
    call minpac#add('tpope/vim-dispatch')
    call minpac#add('tpope/vim-rsi')
    call minpac#add('justinmk/vim-dirvish')
    call minpac#add('justinmk/vim-sneak')
    call minpac#add('junegunn/fzf.vim')
    call minpac#add('junegunn/limelight.vim')
    call minpac#add('junegunn/goyo.vim')
    call minpac#add('airblade/vim-gitgutter')
    call minpac#add('ludovicchabant/vim-gutentags')
    call minpac#add('mhinz/vim-startify')
    call minpac#add('jpalardy/vim-slime')
    call minpac#add('davidhalter/jedi-vim')
    call minpac#add('romainl/vim-qf')

    call minpac#add('joshdick/onedark.vim', {'type': 'opt'})
    call minpac#add('lifepillar/vim-solarized8', {'type': 'opt'})
  endif
endfunction

command! PackUpdate  call <SID>PackInit() | call minpac#update('', {'do': 'call minpac#status()'})
command! PackClean   call <SID>PackInit() | call minpac#clean()
command! PackStatus  call <SID>PackInit() | call minpac#status()

M vim/.vim/plugin/pack_install.vim => vim/.vim/plugin/pack_install.vim +5 -0
@@ 1,3 1,6 @@
" Disable this plugin for now
if 0

if exists('g:loaded_pack_install')
  finish
endif


@@ 7,3 10,5 @@ command! -nargs=+ PackInstall call pack_install#Install(0, <f-args>)
command! -nargs=+ PackInstallOpt call pack_install#Install(1, <f-args>)
command! -nargs=+ PackRemove call pack_install#Remove(<f-args>)
command! -nargs=0 Packages call pack_install#List()

endif

D vim/.vim/vimplug-plugins.vim => vim/.vim/vimplug-plugins.vim +0 -85
@@ 1,85 0,0 @@
" Plugins {{{
" Specify a directory for plugins
call plug#begin('~/.vim/plug')

Plug 'tpope/vim-sensible'        " Sensible defaults
Plug 'tpope/vim-unimpaired'      " A bunch of useful keybindings
Plug 'tpope/vim-capslock'        " Software caps lock
Plug 'tpope/vim-commentary'      " Keybindings for commenting
Plug 'tpope/vim-surround'        " Manage parenthises and brackets
Plug 'tpope/vim-repeat'          " Extend . to work with plugins
" Plug 'tpope/vim-vinegar'         " Better netrw / file browser
Plug 'tpope/vim-dispatch'        " Asynchronous task runner
Plug 'tpope/vim-fugitive'        " Vim git wrapper
Plug 'tpope/vim-rhubarb'         " Github plugin for fugitive

" Gitlab plugin for fugitive
Plug 'shumphrey/fugitive-gitlab.vim'

" Directory viewer for vim
Plug 'justinmk/vim-dirvish'

" Automatically save and manage sessions
Plug 'tpope/vim-obsession'
Plug 'dhruvasagar/vim-prosession'

" Solarized color scheme
Plug 'lifepillar/vim-solarized8'

" One Dark color scheme
Plug 'joshdick/onedark.vim'

" A solid language pack for Vim
Plug 'sheerun/vim-polyglot'

" Improved grepping with support for ag and ripgrep
Plug 'mileszs/ack.vim'

" Use pairs of characters as a motion command
Plug 'justinmk/vim-sneak'

" Show git status icons in gutter
Plug 'airblade/vim-gitgutter'

" Use navigation keybindings in command mode
Plug 'vim-utils/vim-husk'

" A Vim plugin that manages your tag files
Plug 'ludovicchabant/vim-gutentags'

" Use same bindings to navigate between vim splits and tmux panes
" Plug 'christoomey/vim-tmux-navigator'

" FZF
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --bin' }
Plug 'junegunn/fzf.vim'

Plug 'junegunn/limelight.vim'
Plug 'junegunn/goyo.vim'

" Vim language server client
" Plug 'neoclide/coc.nvim', { 'tag': '*', 'do': { -> coc#util#install() }}
Plug 'prabirshrestha/async.vim'
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'prabirshrestha/vim-lsp'
Plug 'prabirshrestha/asyncomplete-lsp.vim'

" Asynchronous linting/fixing for Vim and Language Server Protocol integration
Plug 'w0rp/ale'

" Language specific plugins {{{
" C++
Plug 'Shougo/neoinclude.vim', { 'for': ['c', 'cpp'] }

" Python
Plug 'davidhalter/jedi-vim', { 'for': 'python' }

" Vimscript
Plug 'Shougo/neco-vim', { 'for': 'vim' }
" }}}

" Initialize plugin system
call plug#end()
" }}}

" vim: nofoldenable