vim-codefmt icon indicating copy to clipboard operation
vim-codefmt copied to clipboard

Better instructions for writing a plugin with a custom formatter

Open chiphogg opened this issue 8 years ago • 2 comments

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?

chiphogg avatar Sep 02 '16 14:09 chiphogg

A little lame, but the best tip I can give you is copy one of the existing ones.

fowles avatar Sep 02 '16 16:09 fowles

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.

dbarnett avatar Sep 02 '16 17:09 dbarnett