nvim: fix deprecated use of vim.validate
This commit is contained in:
parent
c5f293d5e2
commit
c30c3a946b
1 changed files with 3 additions and 5 deletions
|
@ -47,11 +47,9 @@ end
|
|||
---@param spec LualineIndicatorSpec
|
||||
---@return table component
|
||||
M.indicator = function(spec)
|
||||
vim.validate {
|
||||
spec = { spec, "table" },
|
||||
icon = { spec.icon, "string" },
|
||||
cond = { spec.cond, "function" },
|
||||
}
|
||||
vim.validate("spec", spec, "table")
|
||||
vim.validate("spec.icon", spec.icon, "string")
|
||||
vim.validate("spec.cond", spec.cond, "function")
|
||||
|
||||
local component = require("lualine.component"):extend()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue