Skip to content

Commit

Permalink
vimrc/auto-format-terraform (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
tenhishadow authored Mar 8, 2024
1 parent 7d83075 commit 3180147
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dotfiles/.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,18 @@ augroup gr_filetype " filetypes
au BufNewFile,BufRead Dockerfile* set ft=dockerfile
" fucking xml
au FileType xml setlocal foldmethod=syntax
" ansible
au BufNewFile,BufRead *.j2 set ft=jinja2

let g:xml_syntax_folding=1
augroup END

" auto-format on exit
augroup gr_hashicorp_autoformat
autocmd!
autocmd BufWritePost *.tf !terraform fmt %
augroup END

" per plugin configuration
"" EasyAlign maps
" Start interactive EasyAlign in visual mode (e.g. vipga)
Expand Down

0 comments on commit 3180147

Please sign in to comment.