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" vim.cmd "colorscheme catppuccin"
end, { end, {
nargs = 1, nargs = 1,
complete = function() complete = function(line)
return flavours local builtin_list = flavours
return vim.tbl_filter(function(val)
return vim.startswith(val, line)
end, builtin_list)
end end
}) })

Loading…
Cancel
Save