plugins/lsp: fix incorrect inlay_hint usage

The previous implementation used an outdated function signature, which
no longer works. Switched to the correct usage as-per the docs.
This commit is contained in:
darkdarcool 2024-06-12 11:52:49 -04:00 committed by Matt Sturgeon
parent 4ab2b289b6
commit 01aa3d469e
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -212,7 +212,7 @@ in
plugins.lsp.onAttach = mkIf cfg.inlayHints ''
-- LSP Inlay Hints {{{
if client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then
vim.lsp.inlay_hint.enable(bufnr, true)
vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })
end
-- }}}
'';