scalameta / nvim-metals

A Metals plugin for Neovim
https://scalameta.org/metals/
Apache License 2.0
466 stars 75 forks source link

Log and show error if user_on_attach fails #670

Closed ghostbuster91 closed 5 months ago

ghostbuster91 commented 5 months ago

I had an error in my on_attach function that was causing it to silently fail before any mappings where created. There was no info at all about the failure which made it harder to understand what is happening.

This PR logs any errors that could happen during the execution of user's on_attach callback.

prassee commented 4 months ago

@ghostbuster91 - thanks for the PR @ckipp01 - will there be one more release which fixes the said issue

ckipp01 commented 4 months ago

@ckipp01 - will there be one more release which fixes the said issue

All you need to do is update the plugin, it will pull in this change.