2018-11-08 07:32:36 -06:00
|
|
|
|
" install plugin manager if needed
|
|
|
|
|
augroup PluginManagerInstaller
|
2020-01-20 11:40:26 -06:00
|
|
|
|
if empty(glob("$vimdir/autoload/plug.vim"))
|
|
|
|
|
silent !curl -fLo "$vimdir/autoload/plug.vim" --create-dirs 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
|
|
|
|
autocmd VimEnter * PlugInstall
|
|
|
|
|
endif
|
2018-11-08 07:32:36 -06:00
|
|
|
|
augroup End
|
|
|
|
|
|
2019-02-09 10:17:39 -06:00
|
|
|
|
let g:airline_powerline_fonts = 1
|
|
|
|
|
let g:airline#extensions#tabline#enabled = 1 " automatically displays all buffers when there's only one tab open
|
|
|
|
|
let g:airline#extensions#tabline#fnamemod = ':t'
|
|
|
|
|
|
|
|
|
|
let g:airline#extensions#tabline#left_sep = ''
|
|
|
|
|
let g:airline#extensions#tabline#left_alt_sep = ''
|
|
|
|
|
let g:airline_right_alt_sep = ''
|
|
|
|
|
let g:airline_right_sep = ''
|
|
|
|
|
let g:airline_left_alt_sep= ''
|
|
|
|
|
let g:airline_left_sep = ''
|
|
|
|
|
let g:airline#extensions#tabline#buffers_label = ''
|
|
|
|
|
|
|
|
|
|
let g:airline_mode_map = {
|
|
|
|
|
\ '__' : '-',
|
|
|
|
|
\ 'n' : 'N',
|
|
|
|
|
\ 'i' : 'I',
|
|
|
|
|
\ 'R' : 'R',
|
|
|
|
|
\ 'T' : 'T',
|
|
|
|
|
\ 't' : 'T',
|
|
|
|
|
\ 'c' : 'C',
|
|
|
|
|
\ 'v' : 'V',
|
|
|
|
|
\ 'V' : 'V',
|
|
|
|
|
\ '' : 'V',
|
|
|
|
|
\ 's' : 'S',
|
|
|
|
|
\ 'S' : 'S',
|
|
|
|
|
\ '' : 'S',
|
|
|
|
|
\ }
|
|
|
|
|
|
|
|
|
|
let g:indent_guide_auto_colors = 1
|
|
|
|
|
let g:indent_guides_enable_on_vim_startup = 1
|
2020-01-20 11:40:26 -06:00
|
|
|
|
let g:prosession_dir = $vimdir."/session/"
|
2019-02-09 10:17:39 -06:00
|
|
|
|
|
2020-01-22 17:25:47 -06:00
|
|
|
|
let g:polyglot_disabled = ['cue', 'cuesheet']
|
|
|
|
|
|
2020-01-20 11:40:26 -06:00
|
|
|
|
" let g:fzf_layout = { 'window': 'enew' }
|
2019-02-09 10:17:39 -06:00
|
|
|
|
|
2018-07-13 12:33:04 -05:00
|
|
|
|
" check if we're using vim as the manpage viewer before loading session plugins
|
2020-02-12 11:13:46 -06:00
|
|
|
|
if exists('asmanviewer') || exists('nosession')
|
2018-07-13 12:33:04 -05:00
|
|
|
|
let g:prosession_dir = '/dev/null'
|
|
|
|
|
else
|
2020-10-23 11:01:31 -05:00
|
|
|
|
Plug 'tpope/vim-obsession' " session ease-of-use
|
|
|
|
|
Plug 'dhruvasagar/vim-prosession' " more session ease-of-use
|
2018-07-13 12:33:04 -05:00
|
|
|
|
endif
|
|
|
|
|
|
2019-02-04 01:43:53 -06:00
|
|
|
|
Plug 'junegunn/vim-plug' " plugin manager should manage itself
|
2020-10-16 13:29:29 -05:00
|
|
|
|
Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'} " fuzzy file finding
|
|
|
|
|
Plug 'junegunn/fzf.vim' " helpers for using fzf in vim
|
2019-02-04 01:43:53 -06:00
|
|
|
|
Plug 'vim-airline/vim-airline' " status line
|
|
|
|
|
Plug 'vim-airline/vim-airline-themes' " more minimal status line
|
|
|
|
|
Plug 'nathanaelkane/vim-indent-guides' " indentation guides
|
2020-11-01 19:12:11 -06:00
|
|
|
|
" Plug 'SirVer/ultisnips' " snippet manager
|
2019-02-04 01:43:53 -06:00
|
|
|
|
Plug 'bkad/CamelCaseMotion' " camel case and underscore word movements
|
|
|
|
|
Plug 'vim-scripts/LargeFile' " gracefully handle very large files
|
|
|
|
|
Plug 'tpope/vim-commentary' " toggle comments in code easily
|
|
|
|
|
Plug 'tpope/vim-repeat' " better vim repeating for plugin-provided actions
|
2020-10-16 13:29:29 -05:00
|
|
|
|
Plug 'vim-scripts/SyntaxRange' " define syntax ranges
|
|
|
|
|
Plug 'tmux-plugins/vim-tmux-focus-events' " allow transitions from tmux
|
|
|
|
|
Plug 'christoomey/vim-tmux-navigator' " allow transitions to tmux
|
|
|
|
|
Plug 'godlygeek/tabular' " commands for aligning text
|
2019-02-04 01:43:53 -06:00
|
|
|
|
Plug 'lytedev/vim-superman' " view man pages with vim
|
2020-01-23 09:51:03 -06:00
|
|
|
|
Plug 'machakann/vim-sandwich' " quickly modify text surrounding objects
|
2020-10-16 13:29:29 -05:00
|
|
|
|
Plug 'tpope/vim-speeddating' " date-like text objects
|
|
|
|
|
Plug 'tpope/vim-fugitive' " git commands
|
2019-02-04 01:43:53 -06:00
|
|
|
|
Plug 'michaeljsmith/vim-indent-object' " adds an indentation level text object
|
|
|
|
|
Plug 'wellle/targets.vim' " adds some more handy text objects
|
|
|
|
|
Plug 'dbakker/vim-projectroot' " adds helper functions for getting to a project's root directory
|
|
|
|
|
Plug 'junegunn/goyo.vim' " better distraction-free editing
|
2020-03-06 15:44:26 -06:00
|
|
|
|
Plug 'junegunn/limelight.vim' " dim inactive blocks of code
|
2019-07-24 11:23:18 -05:00
|
|
|
|
Plug 'tpope/vim-sleuth' " try and detect indent method
|
2019-02-04 01:43:53 -06:00
|
|
|
|
Plug 'editorconfig/editorconfig-vim' " loads project-specific editor settings
|
|
|
|
|
Plug 'scrooloose/nerdtree' " file browser
|
|
|
|
|
Plug 'tpope/vim-eunuch' " unix helper commands
|
2020-01-24 12:45:49 -06:00
|
|
|
|
Plug 'mbbill/undotree' " undo tree visualizer
|
2020-01-20 11:40:26 -06:00
|
|
|
|
" Plug 'junegunn/vim-peekaboo' " preview registers
|
|
|
|
|
|
|
|
|
|
" language support
|
2019-03-13 07:50:31 -05:00
|
|
|
|
Plug 'sheerun/vim-polyglot' " vim plugin loader for many languages
|
2020-10-16 13:29:29 -05:00
|
|
|
|
Plug 'OmniSharp/omnisharp-vim', {'for': ['cs']} " C# language
|
2019-03-13 07:36:53 -05:00
|
|
|
|
Plug 'leafo/moonscript-vim', {'for': ['moon', 'moonscript']} " moonscript language
|
|
|
|
|
Plug 'OmniSharp/omnisharp-vim', {'for': ['cs']} " C# language
|
2020-10-16 13:29:29 -05:00
|
|
|
|
" Plug 'neoclide/coc.nvim', {'branch': 'release'} " language server interface
|
|
|
|
|
Plug 'neovim/nvim-lspconfig' " neovim-native language server interface
|
|
|
|
|
Plug 'tpope/vim-dadbod' " vim database functions
|
2020-01-20 11:40:26 -06:00
|
|
|
|
Plug 'lytedev/elm-vim', {'for': ['elm']} " elm lang
|
|
|
|
|
Plug 'google/vim-jsonnet', {'for': ['jsonnet', 'libsonnet']} " jsonnet
|
|
|
|
|
Plug 'sirtaj/vim-openscad', {'for': ['scad']} " openscad
|
2020-10-16 13:29:29 -05:00
|
|
|
|
Plug 'jjo/vim-cue' " cuelang
|
2020-04-20 10:38:19 -05:00
|
|
|
|
Plug 'calviken/vim-gdscript3', {'for': ['gdscript']} " godot scripts
|
2020-10-16 13:29:29 -05:00
|
|
|
|
" Plug 'chrisbra/csv.vim'
|
2020-01-20 11:40:26 -06:00
|
|
|
|
" Plug 'ssh://git@git.lyte.dev:2222/lytedev/vim-lytlang.git'
|