" Ensure python3 is available if !has('python3') echoerr "Python 3 support is required for vim-ai plugin" finish endif command! -range -nargs=? -complete=customlist,vim_ai#RoleCompletionComplete AI ,call vim_ai#AIRun(, {}, ) command! -range -nargs=? -complete=customlist,vim_ai#RoleCompletionEdit AIEdit ,call vim_ai#AIEditRun(, {}, ) command! -range -nargs=? -complete=customlist,vim_ai#RoleCompletionChat AIChat ,call vim_ai#AIChatRun(, {}, ) command! -range -nargs=? -complete=customlist,vim_ai#RoleCompletionImage AIImage ,call vim_ai#AIImageRun(, {}, ) command! -nargs=? AINewChat call vim_ai#AINewChatDeprecatedRun() command! AIRedo call vim_ai#AIRedoRun() command! AIUtilRolesOpen call vim_ai#AIUtilRolesOpen() command! AIUtilDebugOn call vim_ai#AIUtilSetDebug(1) command! AIUtilDebugOff call vim_ai#AIUtilSetDebug(0)