fix(lsp): correct deprecation message #28403

This commit is contained in:
Maria José Solano 2024-04-18 12:06:52 -07:00 committed by GitHub
parent f1dfe32bf5
commit 97c0a52416
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -381,7 +381,7 @@ function M.enable(enable, filter)
if type(enable) == 'number' or type(filter) == 'boolean' then
vim.deprecate(
'vim.lsp.inlay_hint.enable(bufnr:number, enable:boolean)',
'vim.diagnostic.enable(enable:boolean, filter:table)',
'vim.lsp.inlay_hint.enable(enable:boolean, filter:table)',
'0.10-dev'
)
error('see :help vim.lsp.inlay_hint.enable() for updated parameters')