nvim: fix deprecated use of vim.validate

This commit is contained in:
Fernando Schauenburg 2025-06-26 22:04:06 +02:00
parent c5f293d5e2
commit c30c3a946b

View file

@ -47,11 +47,9 @@ end
---@param spec LualineIndicatorSpec ---@param spec LualineIndicatorSpec
---@return table component ---@return table component
M.indicator = function(spec) M.indicator = function(spec)
vim.validate { vim.validate("spec", spec, "table")
spec = { spec, "table" }, vim.validate("spec.icon", spec.icon, "string")
icon = { spec.icon, "string" }, vim.validate("spec.cond", spec.cond, "function")
cond = { spec.cond, "function" },
}
local component = require("lualine.component"):extend() local component = require("lualine.component"):extend()