vim-codefmt
vim-codefmt copied to clipboard
Better instructions for writing a plugin with a custom formatter
Maybe I've missed it, but it's not obvious to me how to write a plugin that plays nice with vim-codefmt
. We have a custom code formatter at work, and I'd really like to write a lightweight internal plugin that uses codefmt to do the heavy interface lifting.
Any tips?
A little lame, but the best tip I can give you is copy one of the existing ones.
I did start a guide at https://github.com/google/vim-codefmt/wiki/Formatter-Integration-Guide, but the parts you're probably interested in are just TODOs at the moment.