Correct Neovim 0.10 inlay hints config example

This commit is contained in:
Adam Szkoda 2024-05-17 12:42:17 +02:00 committed by GitHub
parent 57062170c5
commit 9099862687
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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