<commit_before>let g:autoformat_autoindent = 0
let g:autoformat_retab = 0
let g:autoformat_remove_trailing_spaces = 0

augroup setup_buildifier
  autocmd!

  " TODO: This is broken if you have a build file and then a json file? idk
  autocmd BufNewFile,BufRead *.bzl let g:formatters_bzl = ['buildifierbzl']
  autocmd BufNewFile,BufRead BUILD,BUILD.bazel,*.BUILD,BUILD.* let g:formatters_bzl = ['buildifierbuild']
  autocmd BufNewFile,BufRead WORKSPACE let g:formatters_bzl = ['buildifierworkspace']
<commit_msg>[vim] Fix buildifier autoformatter issue<commit_after>let g:autoformat_autoindent = 0
let g:autoformat_retab = 0
let g:autoformat_remove_trailing_spaces = 0

augroup setup_buildifier
  autocmd!

  autocmd BufNewFile,BufRead *.bzl let b:formatters_bzl = ['buildifierbzl']
  autocmd BufNewFile,BufRead BUILD,BUILD.bazel,*.BUILD,BUILD.* let b:formatters_bzl = ['buildifierbuild']
  autocmd BufNewFile,BufRead WORKSPACE let b:formatters_bzl = ['buildifierworkspace']

{'fraction_non_alphanumeric': 0.08923076923076922, 'fraction_numerical': 0.006153846153846154, 'mean_word_length': 6.870967741935484, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4007570', 'n_tokens_mistral': 373, 'n_tokens_neox': 339, 'n_words': 80}