BUILD.bazel
を書くための設定をした。
tl;dr
call plug#begin('~/.vim/plugged')
" filetype
Plug 'bazelbuild/vim-ft-bzl'
" code formatter
Plug 'google/vim-maktaba'
Plug 'google/vim-glaive'
Plug 'google/vim-codefmt'
call plug#end()
augroup autoformat_settings
autocmd FileType bzl AutoFormatBuffer buildifier
augroup END
filetype
call plug#begin('~/.vim/plugged')
" filetype
Plug 'bazelbuild/vim-ft-bzl'
call plug#end()
コード整形
call plug#begin('~/.vim/plugged')
" code formatter
Plug 'google/vim-maktaba'
Plug 'google/vim-glaive'
Plug 'google/vim-codefmt'
call plug#end()
augroup autoformat_settings
autocmd FileType bzl AutoFormatBuffer buildifier
augroup END
$ go get -u github.com/bazelbuild/buildtools/buildifier