lsp_extensions.nvim
lsp_extensions.nvim copied to clipboard
Support inlay hints for clangd as well
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.
Is clangd planning to go to the stable API? It might come natively to Neovim see https://github.com/neovim/neovim/issues/18086
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.
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.
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
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.
clangd now supports the stable API: https://github.com/llvm/llvm-project/commit/3137ca80b9ef99359a4adf77512925c2edc461b9