1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-21 17:59:41 +01:00

treewide: remove internal use of helpers module arg

This commit is contained in:
Matt Sturgeon 2025-11-19 11:39:41 +00:00
parent 7add68e918
commit dad19c1238
68 changed files with 687 additions and 758 deletions

View file

@ -1,6 +1,5 @@
{
lib,
helpers,
config,
...
}:
@ -31,7 +30,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
settingsOptions = with lib.types; {
prompt_func_return_type =
helpers.defaultNullOpts.mkAttrsOf bool
lib.nixvim.defaultNullOpts.mkAttrsOf bool
{
go = false;
java = false;
@ -60,7 +59,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
'';
prompt_func_param_type =
helpers.defaultNullOpts.mkAttrsOf bool
lib.nixvim.defaultNullOpts.mkAttrsOf bool
{
go = false;
java = false;
@ -87,7 +86,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
}
'';
printf_statements = helpers.defaultNullOpts.mkAttrsOf (listOf (maybeRaw str)) { } ''
printf_statements = lib.nixvim.defaultNullOpts.mkAttrsOf (listOf (maybeRaw str)) { } ''
In any custom printf statement, it is possible to optionally add a **max of one `%s` pattern**, which is where the debug path will go.
For an example custom printf statement, go to [this folder][folder], select your language, and click on `multiple-statements/printf.config`.
@ -106,7 +105,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
[folder]: https://github.com/ThePrimeagen/refactoring.nvim/blob/master/lua/refactoring/tests/debug/printf
'';
print_var_statements = helpers.defaultNullOpts.mkAttrsOf (listOf (maybeRaw str)) { } ''
print_var_statements = lib.nixvim.defaultNullOpts.mkAttrsOf (listOf (maybeRaw str)) { } ''
In any custom print var statement, it is possible to optionally add a **max of two `%s` patterns**, which is where the debug path and
the actual variable reference will go, respectively. To add a literal `"%s"` to the string, escape the sequence like this: `%%s`.
For an example custom print var statement, go to [this folder][folder], select your language, and view `multiple-statements/print_var.config`.
@ -126,7 +125,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
[folder]: https://github.com/ThePrimeagen/refactoring.nvim/blob/master/lua/refactoring/tests/debug/print_var
'';
extract_var_statements = helpers.defaultNullOpts.mkAttrsOf str { } ''
extract_var_statements = lib.nixvim.defaultNullOpts.mkAttrsOf str { } ''
When performing an `extract_var` refactor operation, you can custom how the new variable would be declared by setting configuration
like the below example.
@ -140,7 +139,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
```
'';
show_success_message = helpers.defaultNullOpts.mkBool false ''
show_success_message = lib.nixvim.defaultNullOpts.mkBool false ''
Shows a message with information about the refactor on success. Such as:
```