plugins/refactoring: switch to mkNeovimPlugin

This commit is contained in:
Matt Sturgeon 2024-05-24 17:36:48 +01:00
parent 883d21d866
commit e3b4315903
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 153 additions and 125 deletions

View file

@ -3,23 +3,56 @@
plugins.refactoring.enable = true;
};
example = {
plugins.refactoring = {
enable = true;
settings = {
prompt_func_return_type = {
go = true;
};
prompt_func_param_type = {
go = true;
};
printf_statements = {
cpp = [ "std::cout << \"%s\" << std::endl;" ];
};
print_var_statements = {
cpp = [ "printf(\"a custom statement %%s %s\", %s)" ];
};
extract_var_statements = {
go = "%s := %s // poggers";
};
};
};
};
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";
settings = {
prompt_func_return_type = {
go = false;
java = false;
cpp = false;
c = false;
h = false;
hpp = false;
cxx = false;
};
prompt_func_param_type = {
go = false;
java = false;
cpp = false;
c = false;
h = false;
hpp = false;
cxx = false;
};
printf_statements = { };
print_var_statements = { };
extract_var_statements = { };
};
};
};