|
|
@ -8,30 +8,29 @@ call vundle#begin()
|
|
|
|
" let Vundle manage Vundle, required
|
|
|
|
" let Vundle manage Vundle, required
|
|
|
|
Plugin 'VundleVim/Vundle.vim'
|
|
|
|
Plugin 'VundleVim/Vundle.vim'
|
|
|
|
|
|
|
|
|
|
|
|
" Plugin 'ycm-core/YouCompleteMe'
|
|
|
|
Plugin 'dense-analysis/ale' " asynchronous linting engine
|
|
|
|
Plugin 'tpope/vim-fugitive'
|
|
|
|
Plugin 'tpope/vim-fugitive' " git integration that I never use
|
|
|
|
Plugin 'tpope/vim-surround'
|
|
|
|
Plugin 'tpope/vim-surround' " edits surrounding quotes and parens and the like
|
|
|
|
Plugin 'tpope/vim-rails'
|
|
|
|
Plugin 'tpope/vim-rails' " rails project management stuff
|
|
|
|
Plugin 'tpope/vim-repeat'
|
|
|
|
Plugin 'tpope/vim-repeat' " fixes the . key for ...something
|
|
|
|
Plugin 'slim-template/vim-slim'
|
|
|
|
Plugin 'slim-template/vim-slim' " what in the 2008 is this
|
|
|
|
Plugin 'kchmck/vim-coffee-script'
|
|
|
|
Plugin 'kchmck/vim-coffee-script' " lol coffee script
|
|
|
|
Plugin 'fatih/vim-go'
|
|
|
|
Plugin 'fatih/vim-go' " all-in-one Go tools
|
|
|
|
Plugin 'fatih/vim-hclfmt'
|
|
|
|
Plugin 'fatih/vim-hclfmt' " nicely formats hcl files
|
|
|
|
Plugin 'nanotech/jellybeans.vim'
|
|
|
|
Plugin 'nanotech/jellybeans.vim' " the best colorscheme
|
|
|
|
Plugin 'ervandew/supertab'
|
|
|
|
Plugin 'ervandew/supertab' " makes tab better apparently
|
|
|
|
Plugin 'scrooloose/nerdcommenter'
|
|
|
|
Plugin 'scrooloose/nerdcommenter' " no idea if I'm even using this
|
|
|
|
Plugin 'scrooloose/nerdtree'
|
|
|
|
Plugin 'scrooloose/nerdtree' " better file navigation
|
|
|
|
Plugin 'Align'
|
|
|
|
Plugin 'Align' " aligns things on demand
|
|
|
|
Plugin 'tomtom/tlib_vim' " dependency of flashdevelop
|
|
|
|
Plugin 'tomtom/tlib_vim' " dependency of flashdevelop
|
|
|
|
Plugin 'endel/flashdevelop.vim'
|
|
|
|
Plugin 'endel/flashdevelop.vim' " this is probably old now
|
|
|
|
Plugin 'ctrlpvim/ctrlp.vim'
|
|
|
|
Plugin 'ctrlpvim/ctrlp.vim' " don't actually know how to use this honestly
|
|
|
|
Plugin 'itchyny/lightline.vim'
|
|
|
|
Plugin 'itchyny/lightline.vim' " fancy status line
|
|
|
|
Plugin 'heavenshell/vim-jsdoc'
|
|
|
|
Plugin 'heavenshell/vim-jsdoc' " js docs?
|
|
|
|
Plugin 'hashivim/vim-terraform'
|
|
|
|
Plugin 'hashivim/vim-terraform' " hclfmt but for terraform
|
|
|
|
Plugin 'b4b4r07/vim-hcl'
|
|
|
|
Plugin 'b4b4r07/vim-hcl' " hcl syntax stuff?
|
|
|
|
Plugin 'Glench/Vim-Jinja2-Syntax'
|
|
|
|
Plugin 'Glench/Vim-Jinja2-Syntax' " jinja2 syntax stuff
|
|
|
|
Plugin 'prabirshrestha/vim-lsp'
|
|
|
|
Plugin 'rust-lang/rust.vim' " bare minimum rust syntax stuff
|
|
|
|
Plugin 'mattn/vim-lsp-settings'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Past plugins
|
|
|
|
" Past plugins
|
|
|
|
"
|
|
|
|
"
|
|
|
@ -47,6 +46,11 @@ call vundle#begin()
|
|
|
|
"
|
|
|
|
"
|
|
|
|
" this repo is gone
|
|
|
|
" this repo is gone
|
|
|
|
" Plugin 'calviken/vim-gdscript3'
|
|
|
|
" Plugin 'calviken/vim-gdscript3'
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
" I'm trying ALE instead
|
|
|
|
|
|
|
|
" Plugin 'ycm-core/YouCompleteMe'
|
|
|
|
|
|
|
|
" Plugin 'prabirshrestha/vim-lsp'
|
|
|
|
|
|
|
|
" Plugin 'mattn/vim-lsp-settings'
|
|
|
|
call vundle#end() " required
|
|
|
|
call vundle#end() " required
|
|
|
|
|
|
|
|
|
|
|
|
" enable the filetype plugin
|
|
|
|
" enable the filetype plugin
|
|
|
@ -214,6 +218,7 @@ if has("autocmd")
|
|
|
|
autocmd FileType php set omnifunc=phpcomplete#CompletePHP
|
|
|
|
autocmd FileType php set omnifunc=phpcomplete#CompletePHP
|
|
|
|
autocmd FileType python set omnifunc=pythoncomplete#Complete
|
|
|
|
autocmd FileType python set omnifunc=pythoncomplete#Complete
|
|
|
|
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
|
|
|
|
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
|
|
|
|
|
|
|
|
autocmd FileType rust set omnifunc=ale#completion#OmniFunc
|
|
|
|
|
|
|
|
|
|
|
|
" causes VIM to enter the directory of the file being edited to simplify
|
|
|
|
" causes VIM to enter the directory of the file being edited to simplify
|
|
|
|
" finding related files.
|
|
|
|
" finding related files.
|
|
|
@ -353,21 +358,36 @@ onoremap il( :<c-u>normal! F)vi(<cr>
|
|
|
|
" use omnicomplete by default
|
|
|
|
" use omnicomplete by default
|
|
|
|
" let g:SuperTabDefaultCompletionType = "<c-x><c-o>"
|
|
|
|
" let g:SuperTabDefaultCompletionType = "<c-x><c-o>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let g:SuperTabDefaultCompletionType = "<c-x><c-o>"
|
|
|
|
|
|
|
|
let g:SuperTabClosePreviewOnPopupClose = 1
|
|
|
|
|
|
|
|
|
|
|
|
" close doc window after finishing an autocomplete
|
|
|
|
" close doc window after finishing an autocomplete
|
|
|
|
" let g:SuperTabClosePreviewOnPopupClose = 1
|
|
|
|
" let g:SuperTabClosePreviewOnPopupClose = 1
|
|
|
|
" ---------------------------------------------------------------------------}}}
|
|
|
|
" ---------------------------------------------------------------------------}}}
|
|
|
|
|
|
|
|
|
|
|
|
" YouCompleteMe -------------------------------------------------------------{{{
|
|
|
|
" YouCompleteMe -------------------------------------------------------------{{{
|
|
|
|
let g:ycm_keep_logfiles = 1
|
|
|
|
"
|
|
|
|
let g:ycm_log_level = 'debug'
|
|
|
|
" I've stopped using this because the install process was too crazy
|
|
|
|
let g:ycm_language_server =
|
|
|
|
"
|
|
|
|
\ [
|
|
|
|
" let g:ycm_keep_logfiles = 1
|
|
|
|
\ {
|
|
|
|
" let g:ycm_log_level = 'debug'
|
|
|
|
\ 'name': 'zig',
|
|
|
|
" let g:ycm_language_server =
|
|
|
|
\ 'cmdline': [ 'zls', '--debug-log' ],
|
|
|
|
" \ [
|
|
|
|
\ 'filetypes': [ 'zig' ],
|
|
|
|
" \ {
|
|
|
|
\ }
|
|
|
|
" \ 'name': 'zig',
|
|
|
|
\ ]
|
|
|
|
" \ 'cmdline': [ 'zls', '--debug-log' ],
|
|
|
|
|
|
|
|
" \ 'filetypes': [ 'zig' ],
|
|
|
|
|
|
|
|
" \ }
|
|
|
|
|
|
|
|
" \ ]
|
|
|
|
|
|
|
|
" ---------------------------------------------------------------------------}}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" ALE -----------------------------------------------------------------------{{{
|
|
|
|
|
|
|
|
let g:ale_linters = {'rust': ['analyzer']}
|
|
|
|
|
|
|
|
let g:ale_fixers = {'rust': ['rustfmt', 'trim_whitespace', 'remove_trailing_lines']}
|
|
|
|
|
|
|
|
let g:rustfmt_autosave = 1
|
|
|
|
|
|
|
|
let g:ale_rust_cargo_use_clippy = executable('cargo-clippy')
|
|
|
|
|
|
|
|
let g:ale_completion_enabled = 1
|
|
|
|
|
|
|
|
set completeopt=menu,menuone,preview,noselect,noinsert
|
|
|
|
" ---------------------------------------------------------------------------}}}
|
|
|
|
" ---------------------------------------------------------------------------}}}
|
|
|
|
|
|
|
|
|
|
|
|
" CtrlP ---------------------------------------------------------------------{{{
|
|
|
|
" CtrlP ---------------------------------------------------------------------{{{
|
|
|
|