trunk-io / neovim-trunk

The official Trunk Check Plugin for Neovim
https://docs.trunk.io/check/ide-integration/neovim-plugin
MIT License
21 stars 3 forks source link

fix: add --output-file to fmt on save #13

Closed puzzler7 closed 10 months ago

puzzler7 commented 10 months ago

Uses --output-file to do format on save, so we no longer write logs to the file if the trunk launcher outputs logs (e.g. if trunk is called through bazel).

This will not work until a new prod release for the CLI is out - the current CLI version that includes the --output-file fix is 1.17.2-beta.5, which is technically less than 1.17.2

Testing for this PR also exposed a bug where setup was being called after start - this PR reworks that flow, causing setup to call start. As a side-effect, we can now support setup configs via VimPlug.

This includes syntax for windows, although it's untested.