fix(commands): fixed plugin completion for commands

This commit is contained in:
Folke Lemaitre 2023-01-01 09:40:51 +01:00
parent 0fadb5e1ce
commit 205ce42cdc
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ function M.complete(cmd, prefix)
table.sort(plugins)
---@param key string
return vim.tbl_filter(function(key)
return key:find(prefix) == 1
return key:find(prefix, 1, true) == 1
end, plugins)
end