fix(inlay-hint): update inlay_hint.enable() args

With merge of neovim/neovim#28374, the `vim.lsp.inlay_hint.enable()`
signature has been updated. In the new version, it takes the boolean
flag first and accepts a filter in the form of a table. The previous
version's buffer input can be passed with the provided implementation.

Fixes: #3011
This commit is contained in:
Tuna Alikaşifoğlu 2024-04-19 00:04:55 +03:00
parent bb36f71b77
commit 32f4365cbe
No known key found for this signature in database
GPG key ID: 4FB9E5E2AA78B613

View file

@ -67,7 +67,7 @@ function M.inlay_hints(buf, value)
if value == nil then if value == nil then
value = not ih.is_enabled(buf) value = not ih.is_enabled(buf)
end end
ih.enable(buf, value) ih.enable(value, { buffrn = buf })
end end
end end