Closed mrdicksteel closed 1 year ago
Does this work for you? @mrdicksteel
diff --git a/lua/rust-tools/inlay_hints.lua b/lua/rust-tools/inlay_hints.lua
index d3fd052..0df31a1 100644
--- a/lua/rust-tools/inlay_hints.lua
+++ b/lua/rust-tools/inlay_hints.lua
@@ -160,7 +160,7 @@ function M.cache_render(self, bufnr)
return
end
- if not vim.api.nvim_buf_is_valid(ctx.bufnr) then
+ if not vim.api.nvim_buf_is_loaded(ctx.bufnr) then
self.cache[ctx.bufnr] = nil
return
end
It works. @cairijun
Fedora 36 NVIM v0.8.3 rust-analyzer: installed version 2023-02-06 rustc 1.67.0 (fc594f156 2023-01-24)
Using just one file
main.rs
with the content:Steps to reproduce:
Error:
Relevant lsp settings: