mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
refactor(lua): remove deprecated features #28725
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user