here is my config.
{'simrat39/rust-tools.nvim', lazy = false,
config = function()
local ih = require("inlay-hints")
require("rust-tools").setup({
tools = {
on_initialized = function()
ih.set_all()
end,
autosethints = true,
inlay_hints = {
auto = true,
show_parameter_hints = true,
},
hover_actions = {
auto_focus = true
},
},
server = {
on_attach = function(c, b)
ih.on_attach(c, b)
end,
},
})
end,
},
I use https://github.com/NvChad/NvChad and add rust-tools and inlay-hints as customized plugin. Now it does not work with .rs file. But if I key in :RustEnableInlayHints, I can see it just sparked once about 0.5s then disappeared. I install clangd-extension.nvim works good with .c file. Expect inlay-hints and rust-tools do it as well.
here is my config.