Skip to content

Commit 143661a

Browse files
committed
Auto merge of rust-lang#17250 - adaszko:patch-1, r=lnicola
Correct Neovim 0.10 inlay hints config example This change is what I had to do to make inlay hints work on Neovim 0.10. The current example produces errors about wrong argument type to `.enable()`.
2 parents 5706217 + 9099862 commit 143661a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/docs/user/manual.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ If you're running Neovim 0.10 or later, you can enable inlay hints via `on_attac
376376
----
377377
lspconfig.rust_analyzer.setup({
378378
on_attach = function(client, bufnr)
379-
vim.lsp.inlay_hint.enable(bufnr)
379+
vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })
380380
end
381381
})
382382
----

0 commit comments

Comments
 (0)