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()`.
This commit is contained in:
bors 2024-05-18 05:37:17 +00:00
commit 6524922b1b

View file

@ -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({ lspconfig.rust_analyzer.setup({
on_attach = function(client, bufnr) on_attach = function(client, bufnr)
vim.lsp.inlay_hint.enable(bufnr) vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })
end end
}) })
---- ----