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

Features:

Inlay hints

image

Memory usage

View AST

Symbol info

image

Type heirarchy

Implementation status of extensions

  • [x] Memory usage (implemented)
  • [x] AST (implemented)
  • [x] Symbol info request (implemented)
  • [x] Type hierarchy (implemented)
  • [x] Inlay hints (implemented)
  • [x] Switch between source/header (nvim-lspconfig already does this)
  • [x] File status (see lsp-status.nvim)
  • [x] 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