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 83ba420431
commit 2cc2521996
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
})
----