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: check if log directory exists before writing logs #17

Closed puzzler7 closed 7 months ago

puzzler7 commented 7 months ago

Previously, if we found the user's workspace, we would just assume that the .trunk/logs directory exists. This PR adds a check for the directory. If it does not exist, we write logs to a temp file instead.

Fixes #16.