1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-09 03:56:05 +01:00
nixvim/tests/test-sources/plugins/by-name/refactoring/default.nix
saygo-png 79d53a50e2 tests: use __empty and __raw
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-11-05 21:26:13 +00:00

72 lines
1.5 KiB
Nix

{
empty = {
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";
};
show_success_message = true;
};
};
};
withTelescope = {
plugins.telescope.enable = true;
plugins.refactoring = {
enable = true;
enableTelescope = true;
};
plugins.web-devicons.enable = true;
};
defaults = {
plugins.refactoring = {
enable = true;
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.__empty = { };
print_var_statements.__empty = { };
extract_var_statements.__empty = { };
show_success_message = false;
};
};
};
}