How to show full diagnostic message in floating window?

When using lua vim.diagnostic.open_float(), for some type of warnings and errors, the message is truncated with ‘@@@’ symbols

diagnostics1

However, others are being shown properly

How to make this consistent?

My lspconfig