From 5eaefb52c7a9297638065b90686c596e98a5ce32 Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 16 Sep 2024 20:50:28 +0200 Subject: [PATCH] fix: filter fn --- lua/codemp/command.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/codemp/command.lua b/lua/codemp/command.lua index 2344ce2..d9ed7df 100644 --- a/lua/codemp/command.lua +++ b/lua/codemp/command.lua @@ -12,7 +12,7 @@ local function filter(needle, haystack, getter) hay = getter(opt) end if vim.startswith(hay, needle) then - table.insert(hints, opt) + table.insert(hints, hay) end end return hints