plugins/refactoring: init + test (#676)

This commit is contained in:
Haseeb Majid 2023-10-31 09:20:00 +00:00 committed by GitHub
parent 9004ffe32f
commit 8fb5fc43fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 195 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{
empty = {
plugins.refactoring.enable = true;
};
defaults = {
plugins.refactoring = {
enable = true;
promptFuncReturnType = {
go = true;
};
promptFuncParamType = {
go = true;
};
printVarStatements = {
cpp = [
"printf(\"a custom statement %%s %s\", %s)"
];
};
printfStatements = {
cpp = [
"std::cout << \"%s\" << std::endl;"
];
};
extractVarStatements = {
go = "%s := %s // poggers";
};
};
};
}