lsp_extensions.nvim icon indicating copy to clipboard operation
lsp_extensions.nvim copied to clipboard

Support inlay hints for clangd as well

Open tom-anders opened this issue 3 years ago • 6 comments

Clangd-14 also has support for inlay hints (currently needs to be enabled via the --inlay-hints flag) via the 'clangd/inlayHints' request. Would be cool if this was supported as well. Probably most of the rust code could be reused.

tom-anders avatar Dec 07 '21 08:12 tom-anders

Is clangd planning to go to the stable API? It might come natively to Neovim see https://github.com/neovim/neovim/issues/18086

jan-xyz avatar Apr 17 '22 08:04 jan-xyz

Is clangd planning to go to the stable API? It might come natively to Neovim see https://github.com/neovim/neovim/issues/18086

Clangd14 is using the stable api. And clangd13 is using the experiment api.

Decodetalkers avatar Apr 17 '22 11:04 Decodetalkers

Are you sure? @tom-anders mentioned it uses clangd/inlayHints, which is a custom extension.

Edit: I am pretty sure it's not using the stable API released with 3.17 of the LSP spec.

jan-xyz avatar Apr 17 '22 12:04 jan-xyz

Are you sure? @tom-anders mentioned it uses clangd/inlayHints, which is a custom extension.

Edit: I am pretty sure it's not using the stable API released with 3.17 of the LSP spec.

I see ,but the api is used since version 13 on Linux.. And now vscode has originally support the inlay of clangd14, I predicted that is use the stable api..I may need to search for more information

Decodetalkers avatar Apr 17 '22 12:04 Decodetalkers

Are you sure? @tom-anders mentioned it uses clangd/inlayHints, which is a custom extension.

Edit: I am pretty sure it's not using the stable API released with 3.17 of the LSP spec.

https://github.com/llvm/clangd-www/pull/56

It is still clangd/inlay,I mistake for it. It seems that vscode extension check the version of clangd and show the inlay hints..Not because it uses the stable api.

Decodetalkers avatar Apr 17 '22 13:04 Decodetalkers

clangd now supports the stable API: https://github.com/llvm/llvm-project/commit/3137ca80b9ef99359a4adf77512925c2edc461b9

tom-anders avatar May 18 '22 11:05 tom-anders