diff --git a/plugins/utils/refactoring.nix b/plugins/utils/refactoring.nix index 8cdcfdf3..1000a5e8 100644 --- a/plugins/utils/refactoring.nix +++ b/plugins/utils/refactoring.nix @@ -136,5 +136,13 @@ helpers.neovim-plugin.mkNeovimPlugin config { } ``` ''; + + show_success_message = helpers.defaultNullOpts.mkBool false '' + Shows a message with information about the refactor on success. Such as: + + ``` + [Refactor] Inlined 3 variable occurrences + ``` + ''; }; } diff --git a/tests/test-sources/plugins/utils/refactoring.nix b/tests/test-sources/plugins/utils/refactoring.nix index c490880e..6caf7731 100644 --- a/tests/test-sources/plugins/utils/refactoring.nix +++ b/tests/test-sources/plugins/utils/refactoring.nix @@ -23,6 +23,7 @@ extract_var_statements = { go = "%s := %s // poggers"; }; + show_success_message = true; }; }; }; @@ -53,6 +54,7 @@ printf_statements = { }; print_var_statements = { }; extract_var_statements = { }; + show_success_message = false; }; }; };