refactor(lua): remove deprecated features #28725

This commit is contained in:
Justin M. Keyes
2024-05-13 05:00:39 -07:00
committed by GitHub
parent b6fdde5224
commit e3ec974324
4 changed files with 7 additions and 55 deletions

View File

@@ -125,16 +125,14 @@ describe('vim.lsp.inlay_hint', function()
'enable: expected boolean, got table',
t.pcall_err(exec_lua, [[vim.lsp.inlay_hint.enable({}, { bufnr = bufnr })]])
)
t.matches(
'enable: expected boolean, got number',
t.pcall_err(exec_lua, [[vim.lsp.inlay_hint.enable(42)]])
)
t.matches(
'filter: expected table, got number',
t.pcall_err(exec_lua, [[vim.lsp.inlay_hint.enable(true, 42)]])
)
exec_lua [[vim.notify = function() end]]
t.matches(
'see %:help vim%.lsp%.inlay_hint%.enable',
t.pcall_err(exec_lua, [[vim.lsp.inlay_hint.enable(42)]])
)
end)
describe('clears/applies inlay hints when passed false/true/nil', function()