refactor(command): Add custom completion

dev
nullchilly 2 years ago
parent b31738cd74
commit 2c08d7b590

@ -9,8 +9,11 @@ command("Catppuccin", function(inp)
vim.cmd "colorscheme catppuccin"
end, {
nargs = 1,
complete = function()
return flavours
complete = function(line)
local builtin_list = flavours
return vim.tbl_filter(function(val)
return vim.startswith(val, line)
end, builtin_list)
end
})

Loading…
Cancel
Save