Diagnostic.source no longer exists after vim.diagnostic overhaul

vim.lsp.diagnostics has recently moved to vim.diagnostic.
I liked the possibility to inspect the source of the diagnostic, especially for efm langserver, but the source field no longer exists. Do you know if it is still possible to achieve the same?

Personally I would wait, as we are adding this to the diagnostic API as a first class option. See: feat(diagnostic): add option to include diagnostic source by gpanders · Pull Request #15717 · neovim/neovim · GitHub

1 Like