Skip to content

Commit

Permalink
Auto merge of #17250 - adaszko:patch-1, r=lnicola
Browse files Browse the repository at this point in the history
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()`.
  • Loading branch information
bors committed May 18, 2024
2 parents 83ba420 + 2cc2521 commit 6524922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user/manual.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ If you're running Neovim 0.10 or later, you can enable inlay hints via `on_attac
----
lspconfig.rust_analyzer.setup({
on_attach = function(client, bufnr)
vim.lsp.inlay_hint.enable(bufnr)
vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })
end
})
----
Expand Down

0 comments on commit 6524922

Please sign in to comment.