You can often build tools for Vim in whatever language that you're proficient in and plug them into the editor.
Here's one article that prepares a custom python formatting script and easily integrates it with Vim's "equalprg": https://www.seanh.cc/2026/01/18/ruff-format-in-vim/

