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