Clangd_extensions.nvim - Support for clangd's off-spec features in neovim's LSP client

Features:

Inlay hints

Memory usage

View AST

Symbol info

Type heirarchy

Implementation status of extensions

  • Memory usage (implemented)
  • AST (implemented)
  • Symbol info request (implemented)
  • Type hierarchy (implemented)
  • Inlay hints (implemented)
  • Switch between source/header (nvim-lspconfig already does this)
  • File status (see lsp-status.nvim)
  • Compilation commands (can be specified in lspconfig init_options)
  • Code completion scores (can be done using cmp comparators)
  • Force diagnostics generation (not sure)
3 Likes

Very cool! I’m looking forward to playing with this more.

Just filed an issue, though, the example configuration has a typo.

I’ve been jealous of Rust’s inlay hints, so this is great news!

The completion scores feature has been implemented (for nvim-cmp) which should improve completion item sorting