diff options
| author | bors <bors@rust-lang.org> | 2024-05-18 05:37:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-18 05:37:17 +0000 |
| commit | 143661a7f0df8b456f9caffbb1fabafcd4407db0 (patch) | |
| tree | 6a68f9595ec391029b51fdda7157f4fb39907e3e /src | |
| parent | 57062170c5c03c827c07c3f9e143c2d6ed7c70e7 (diff) | |
| parent | 9099862687c819f5e39a38504d35e8776fc4e179 (diff) | |
| download | rust-143661a7f0df8b456f9caffbb1fabafcd4407db0.tar.gz rust-143661a7f0df8b456f9caffbb1fabafcd4407db0.zip | |
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()`.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/rust-analyzer/docs/user/manual.adoc | 2 |
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 }) ---- |
