Clangd and custom notifications for inactiveRegions

A new notification type was added to clangd for indicating inactive code regions: ⚙ D143974 [clangd] Inactive regions support via dedicated protocol . I’d like to experiment with implementing a handler for this, but I’m not sure where to start. Should something like this be added to lspconfig? or maybe the existing clangd_extensions package ? Any tips on how to get started are appreciated. I’m also not sure how this interacts with the existing semantic highlight that just grays (comments) out inactive regions…I wonder if that needs to be disabled or just gets overridden.

a snippet that works was provided here: Using semantic highlighting in neovim · GitHub