dmmulroy / ts-error-translator.nvim

MIT License
226 stars 5 forks source link

Support for vtsls #16

Closed kristijanhusak closed 6 months ago

kristijanhusak commented 6 months ago

Hey!

Nice plugin! I'm hoping to get more understanding from those nasty TS errors.

I tried using this with my vtsls language server, but it didn't work. Once I updated the check for client to be client == 'tsserver' or client == 'vtsls' it started working. Could that be added ?

dmmulroy commented 6 months ago

I'm unfamiliar with vtsls, but in the mean time you should be able to manually override vtsls's [textDocument]/publishDiagnostics handler with the require('ts-error-translator').translate function.