From 672ecf410126d1e5b828557e7431b8f751135955 Mon Sep 17 00:00:00 2001 From: Sam <130783534+Sam-programs@users.noreply.github.com> Date: Fri, 12 Jul 2024 19:05:52 +0300 Subject: [PATCH] refactor: avoid unused variable warning Co-authored-by: max397574 <81827001+max397574@users.noreply.github.com> --- lua/better_escape.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/better_escape.lua b/lua/better_escape.lua index 9fd3582..01b1c76 100644 --- a/lua/better_escape.lua +++ b/lua/better_escape.lua @@ -72,7 +72,7 @@ local function record_key(key) end) end -vim.on_key(function(mapping, typed) +vim.on_key(function(_, typed) if typed == "" then return end