mirror of https://github.com/folke/lazy.nvim.git
fix(commands): fixed plugin completion for commands
This commit is contained in:
parent
0fadb5e1ce
commit
205ce42cdc
|
@ -72,7 +72,7 @@ function M.complete(cmd, prefix)
|
||||||
table.sort(plugins)
|
table.sort(plugins)
|
||||||
---@param key string
|
---@param key string
|
||||||
return vim.tbl_filter(function(key)
|
return vim.tbl_filter(function(key)
|
||||||
return key:find(prefix) == 1
|
return key:find(prefix, 1, true) == 1
|
||||||
end, plugins)
|
end, plugins)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue