mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
perf(validate): use lighter version
- Also fix `vim.validate()` for PUC Lua when showing errors for values that aren't string or number.
This commit is contained in:

committed by
Lewis Russell

parent
fa6ab0d909
commit
3f3e4837d5
@@ -330,9 +330,7 @@ end
|
||||
---
|
||||
--- @param opts vim.treesitter.dev.inspect_tree.Opts?
|
||||
function M.inspect_tree(opts)
|
||||
vim.validate({
|
||||
opts = { opts, 't', true },
|
||||
})
|
||||
vim.validate('opts', opts, 'table', true)
|
||||
|
||||
opts = opts or {}
|
||||
|
||||
|
Reference in New Issue
Block a user