about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdam Szkoda <adaszko@gmail.com>2024-05-17 12:42:17 +0200
committerGitHub <noreply@github.com>2024-05-17 12:42:17 +0200
commit9099862687c819f5e39a38504d35e8776fc4e179 (patch)
tree6a68f9595ec391029b51fdda7157f4fb39907e3e
parent57062170c5c03c827c07c3f9e143c2d6ed7c70e7 (diff)
downloadrust-9099862687c819f5e39a38504d35e8776fc4e179.tar.gz
rust-9099862687c819f5e39a38504d35e8776fc4e179.zip
Correct Neovim 0.10 inlay hints config example
-rw-r--r--src/tools/rust-analyzer/docs/user/manual.adoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/docs/user/manual.adoc b/src/tools/rust-analyzer/docs/user/manual.adoc
index 7b531b0db31..8e6c53d0c5a 100644
--- a/src/tools/rust-analyzer/docs/user/manual.adoc
+++ b/src/tools/rust-analyzer/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
 })
 ----