mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 11:30:06 +02:00
plugins/refactoring: switch to mkNeovimPlugin
This commit is contained in:
parent
883d21d866
commit
e3b4315903
2 changed files with 153 additions and 125 deletions
|
@ -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 = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue