Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 43 additions & 1 deletion vimrcs/plugins_config.vim
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,51 @@ set packpath+=~/.vim_runtime
" => Load pathogen paths
""""""""""""""""""""""""""""""
let s:vim_runtime = expand('<sfile>:p:h')."/.."

" Plugin profile: set g:amix_plugin_profile = 'full' to load everything.
let g:amix_plugin_profile = get(g:, 'amix_plugin_profile', 'ops')

" Always load forked plugins and local user plugins
call pathogen#infect(s:vim_runtime.'/sources_forked/{}')
call pathogen#infect(s:vim_runtime.'/sources_non_forked/{}')
call pathogen#infect(s:vim_runtime.'/my_plugins/{}')

if g:amix_plugin_profile ==# 'full'
call pathogen#infect(s:vim_runtime.'/sources_non_forked/{}')
else
" Lean ops profile: prioritize server maintenance + common dev workflows.
let s:ops_plugins = [
\ 'ack.vim',
\ 'ale',
\ 'auto-pairs',
\ 'bufexplorer',
\ 'ctrlp.vim',
\ 'dracula',
\ 'editorconfig-vim',
\ 'lightline-ale',
\ 'lightline.vim',
\ 'mru.vim',
\ 'nerdtree',
\ 'open_file_under_cursor.vim',
\ 'tlib',
\ 'vim-addon-mw-utils',
\ 'vim-commentary',
\ 'vim-expand-region',
\ 'vim-fugitive',
\ 'vim-gitgutter',
\ 'vim-indent-guides',
\ 'vim-indent-object',
\ 'vim-lastplace',
\ 'vim-repeat',
\ 'vim-rhubarb',
\ 'vim-snipmate',
\ 'vim-snippets',
\ 'vim-surround',
\ ]
for s:plugin in s:ops_plugins
call pathogen#infect(s:vim_runtime.'/sources_non_forked/'.s:plugin)
endfor
endif

call pathogen#helptags()


Expand Down