Created
June 7, 2021 17:55
-
-
Save noahrichards/a3744fec95e07ffd106f00fb3db2f401 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
colo solarized | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'google/vim-maktaba' | |
Plugin 'google/vim-codefmt' | |
Plugin 'google/vim-glaive' | |
call vundle#end() | |
call glaive#Install() | |
Glaive codefmt plugin[mappings] | |
filetype plugin indent on | |
augroup autoformat_settings | |
autocmd FileType bzl AutoFormatBuffer buildifier | |
autocmd FileType c,cpp,proto,javascript,arduino AutoFormatBuffer clang-format | |
autocmd FileType dart AutoFormatBuffer dartfmt | |
autocmd FileType go AutoFormatBuffer gofmt | |
autocmd FileType gn AutoFormatBuffer gn | |
autocmd FileType html,css,sass,scss,less,json AutoFormatBuffer js-beautify | |
autocmd FileType java AutoFormatBuffer google-java-format | |
autocmd FileType python AutoFormatBuffer yapf | |
" Alternative: autocmd FileType python AutoFormatBuffer autopep8 | |
autocmd FileType rust AutoFormatBuffer rustfmt | |
autocmd FileType vue AutoFormatBuffer prettier | |
augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment