ziglang / zig.vim

Vim configuration for Zig
MIT License
466 stars 59 forks source link

Rewrite automatic formatting logic #41

Closed LemonBoy closed 3 years ago

LemonBoy commented 3 years ago

Drop all the extra baggage we inherited from vim-go and polish a bit the code. The formatting now happens on-the-fly, without first writing the buffer to a temporary file, and greatly improves the saving speed on my machine.

As a bonus, it will now stop throwing meaningless errors every time you write some wrong code in a unsaved buffer.

Please give this PR a spin and smash that lik^H :+1: button.

haze commented 3 years ago

Thank you for your contribution @LemonBoy 😄