Repetitive LSP Diagnostic messages on the same single line

I configured Neovim’s native LSP for Lua last night & it worked as expected. Woke up today to receive some updates & it doesn’t work as it used any more.

I’ve attached a screenshot below of what the LSP diagnostic messages looks like right now;

Notice the LSP diagnostics enclosed inside the red border, it’s repeating itself & isn’t something I want. I want the LSP client to show me the diagnostics message only once, so is there any way to fix it?

Can you share the output of running :lua print(vim.inspect(vim.tbl_keys(vim.lsp.buf_get_clients())))? I wonder if you (somehow) have more than one client attached?

If that shows only a single entry, then you have other plugins that are publishing extra diagnostics.

…If that shows only a single entry, then you have other plugins that are publishing extra diagnostics.

Restarting Neovim seems to have fixed it immediately. But now that I know how to debug it, I’ll investigate the issue further if I come across it ever again.