From a2eac685754252c903094aefa40ab6d747d103aa Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 29 Dec 2022 17:32:54 +0100 Subject: [PATCH] fix(cmd): fixed signature of cmd._del. Fixes #229 --- .gitignore | 3 ++- lua/lazy/core/handler/cmd.lua | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 58426cf..e62ab00 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ -tt.lua +tt.* .tests doc/tags debug .repro +foo.* diff --git a/lua/lazy/core/handler/cmd.lua b/lua/lazy/core/handler/cmd.lua index d10bd4b..a4913e0 100644 --- a/lua/lazy/core/handler/cmd.lua +++ b/lua/lazy/core/handler/cmd.lua @@ -36,9 +36,8 @@ function M:_add(cmd) }) end ----@param _plugin LazyPlugin ---@param value string -function M:_del(_plugin, value) +function M:_del(value) pcall(vim.api.nvim_del_user_command, value) end