From e357536a89ac72f7d164f2175f62959dc123c284 Mon Sep 17 00:00:00 2001 From: notomo Date: Mon, 21 Oct 2024 20:39:51 +0900 Subject: [PATCH] Remove vim.validate --- lua/waitevent/option.lua | 1 - lua/waitevent/test/helper.lua | 5 ----- 2 files changed, 6 deletions(-) diff --git a/lua/waitevent/option.lua b/lua/waitevent/option.lua index c86c811..6dee143 100644 --- a/lua/waitevent/option.lua +++ b/lua/waitevent/option.lua @@ -51,7 +51,6 @@ local default = { } local new = function(raw_opts) - vim.validate({ raw_opts = { raw_opts, "table", true } }) raw_opts = raw_opts or {} local opts = vim.tbl_deep_extend("force", default, raw_opts) return setmetatable(opts, M) diff --git a/lua/waitevent/test/helper.lua b/lua/waitevent/test/helper.lua index ff9147d..f29f9c6 100644 --- a/lua/waitevent/test/helper.lua +++ b/lua/waitevent/test/helper.lua @@ -26,11 +26,6 @@ function helper.job_wait(job_id) end function helper.wait_autocmd(events, pattern) - vim.validate({ - events = { events, "string", "table" }, - pattern = { pattern, "string", true }, - }) - local called = false local group = vim.api.nvim_create_augroup("waitevent_test", {}) vim.api.nvim_create_autocmd(events, {