Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #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()`.
| -rw-r--r-- | docs/user/manual.adoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/user/manual.adoc b/docs/user/manual.adoc index 7b531b0db3..8e6c53d0c5 100644 --- a/docs/user/manual.adoc +++ b/docs/user/manual.adoc @@ -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 }) ---- |