@@ -576,6 +576,34 @@ indent = { tab-width = 4, unit = "\t" }
576576name = "latex"
577577source = { git = "https://github.com/latex-lsp/tree-sitter-latex", rev = "8c75e93cd08ccb7ce1ccab22c1fbd6360e3bcea6" }
578578
579+[[language]]
580+name = "bibtex"
581+scope = "source.bib"
582+injection-regex = "bib"
583+file-types = ["bib"]
584+roots = []
585+comment-token = "%"
586+language-server = { command = "texlab" }
587+indent = { tab-width = 4, unit = "\t" }
588+auto-format = true
589+
590+[language.formatter]
591+command = 'bibtex-tidy'
592+args = [
593+ "-",
594+ "--curly",
595+ "--drop-all-caps",
596+ "--remove-empty-fields",
597+ "--sort-fields",
598+ "--sort=year,author,id",
599+ "--strip-enclosing-braces",
600+ "--trailing-commas",
601+]
602+
603+[[grammar]]
604+name = "bibtex"
605+source = { git = "https://github.com/latex-lsp/tree-sitter-bibtex", rev = "ccfd77db0ed799b6c22c214fe9d2937f47bc8b34" }
606+
579607[[language]]
580608name = "lean"
581609scope = "source.lean"