Skip to content

Commit

Permalink
plugins/refactoring: add missing option show_success_message
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed May 26, 2024
1 parent e3b4315 commit 61cc6e9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugins/utils/refactoring.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
'';
};
}
2 changes: 2 additions & 0 deletions tests/test-sources/plugins/utils/refactoring.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
extract_var_statements = {
go = "%s := %s // poggers";
};
show_success_message = true;
};
};
};
Expand Down Expand Up @@ -53,6 +54,7 @@
printf_statements = { };
print_var_statements = { };
extract_var_statements = { };
show_success_message = false;
};
};
};
Expand Down

0 comments on commit 61cc6e9

Please sign in to comment.