p00f / clangd_extensions.nvim

Clangd's off-spec features for neovim's LSP client. Use https://sr.ht/~p00f/clangd_extensions.nvim instead
MIT License
448 stars 16 forks source link

Inlay hints don't update after editting text, only after saving file #59

Closed h3xOo closed 1 month ago

h3xOo commented 1 month ago

If I have code snippet like this: obraz and edit string inside it, I'm left with inlay hints on right: obraz After :w they are fine. And also after dd-ing line, hints stick to line below with doubled indentation (again, :w fixes the issue): obraz

p00f commented 1 month ago

yes, this is intentionally simple -

https://github.com/p00f/clangd_extensions.nvim/blob/f36d788f05cfb73d4fd2e606e6ad15f8b842124f/lua/clangd_extensions/inlay_hints.lua#L31

to get correctly updating inlay hints, disable inlay hints in clangd_extensions.nvim and use :h vim.lsp.inlay_hint

p00f commented 1 month ago

I'll remove this feature from clangd extensions after some time, now that it has landed in neovim itself