Skip to content

Commit c37031d

Browse files
committed
treewide: luaName -> moduleName
Jus to closer align with its usage.
1 parent a7012e7 commit c37031d

File tree

23 files changed

+31
-31
lines changed

23 files changed

+31
-31
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ A template plugin can be found in (plugins/TEMPLATE.nix)[https://github.com/nix-
7373
| **hasSettings** | Indicating whether the plugin has settings. A `settings` option will be created if true. | No | `true` |
7474
| **imports** | Additional modules to import. | No | `[]` |
7575
| **isColorscheme** | Indicating whether the plugin is a colorscheme. | No | `false` |
76-
| **luaName** | The Lua name for the plugin. | No | `name` parameter |
76+
| **moduleName** | The Lua name for the plugin. | No | `name` parameter |
7777
| **maintainers** | Maintainers for the plugin. | No | `[]` |
7878
| **optionsRenamedToSettings** | Options that have been renamed and move to the `settings` attribute. | No | `[]` |
79-
| **packPathName** | The name of the plugin directory in [packpath](https://neovim.io/doc/user/options.html#'packpath'), usually the plugin's github repo name. E.g. `"foo-bar.nvim"`. | No | `name` parameter |
79+
| **packPathName** | The name of the plugin directory in [packpath](https://neovim.io/doc/user/options.html#'packpath'), usually the plugin's github repo name. E.g. `"foo-bar.nvim"`. | No | `name` parameter |
8080
| **package** | The nixpkgs package attr for this plugin. Can be a string, a list of strings, a module option, or any derivation. For example, "foo-bar-nvim" for `pkgs.vimPlugins.foo-bar-nvim`, or `[ "hello" "world" ]` will be referenced as `pkgs.hello.world`. | No | `name` parameter |
81-
| **settingsDescription** | A description of the settings provided to the `setup` function. | No | `"Options provided to the require('${luaName}')${setup} function."` |
81+
| **settingsDescription** | A description of the settings provided to the `setup` function. | No | `"Options provided to the require('${moduleName}')${setup} function."` |
8282
| **settingsExample** | An example configuration for the plugin's settings. | No | `null` |
8383
| **settingsOptions** | Options representing the plugin's settings. This is optional because `settings` is a "freeform" option. See [Declaring plugin options](#declaring-plugin-options). | No | `{}` |
8484
| **setup** | The setup function for the plugin. | No | `".setup"` |
@@ -135,7 +135,7 @@ Such plugins are usually configured via vim globals, but often have no configura
135135
| **isColorscheme** | Flag to indicate if the plugin is a colorscheme. | No | `false` |
136136
| **maintainers** | The maintainers of the plugin. | No | `[]` |
137137
| **optionsRenamedToSettings** | List of options renamed to settings. | No | `[]` |
138-
| **packPathName** | The name of the plugin directory in [packpath](https://neovim.io/doc/user/options.html#'packpath'), usually the plugin's github repo name. E.g. `"foo-bar.vim"`. | No | `name` parameter |
138+
| **packPathName** | The name of the plugin directory in [packpath](https://neovim.io/doc/user/options.html#'packpath'), usually the plugin's github repo name. E.g. `"foo-bar.vim"`. | No | `name` parameter |
139139
| **package** | The nixpkgs package attr for this plugin. Can be a string, a list of strings, a module option, or any derivation. For example, "foo-bar-vim" for `pkgs.vimPlugins.foo-bar-vim`, or `[ "hello" "world" ]` will be referenced as `pkgs.hello.world`. | No | `name` parameter |
140140
| **settingsExample** | Example settings for the plugin. | No | `null` |
141141
| **settingsOptions** | Options representing the plugin's settings. This is optional because `settings` is a "freeform" option. See [Declaring plugin options](#declaring-plugin-options). | No | `{}` |

lib/neovim-plugin.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
package ? name,
4141
settingsOptions ? { },
4242
settingsExample ? null,
43-
settingsDescription ? "Options provided to the `require('${luaName}')${setup}` function.",
43+
settingsDescription ? "Options provided to the `require('${moduleName}')${setup}` function.",
4444
hasSettings ? true,
4545
extraOptions ? { },
4646
# config
47-
luaName ? name,
47+
moduleName ? name,
4848
setup ? ".setup",
4949
extraConfig ? cfg: { },
5050
extraPlugins ? [ ],
@@ -66,7 +66,7 @@
6666
opts = options.${namespace}.${name};
6767

6868
setupCode = ''
69-
require('${luaName}')${setup}(${
69+
require('${moduleName}')${setup}(${
7070
lib.optionalString (cfg ? settings) (lib.nixvim.toLuaObject cfg.settings)
7171
})
7272
'';

plugins/by-name/better-escape/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ with lib;
77
helpers.neovim-plugin.mkNeovimPlugin {
88
name = "better-escape";
99
packPathName = "better-escape.nvim";
10-
luaName = "better_escape";
10+
moduleName = "better_escape";
1111
package = "better-escape-nvim";
1212

1313
maintainers = [ maintainers.GaetanLepage ];

plugins/by-name/codeium-nvim/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ in
88
lib.nixvim.neovim-plugin.mkNeovimPlugin {
99
name = "codeium-nvim";
1010
packPathName = "codeium.nvim";
11-
luaName = "codeium";
11+
moduleName = "codeium";
1212

1313
maintainers = with lib.maintainers; [
1414
GaetanLepage

plugins/by-name/comment/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ with lib;
77
helpers.neovim-plugin.mkNeovimPlugin {
88
name = "comment";
99
packPathName = "Comment.nvim";
10-
luaName = "Comment";
10+
moduleName = "Comment";
1111
package = "comment-nvim";
1212

1313
maintainers = [ maintainers.GaetanLepage ];

plugins/by-name/conform-nvim/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let
88
in
99
lib.nixvim.neovim-plugin.mkNeovimPlugin {
1010
name = "conform-nvim";
11-
luaName = "conform";
11+
moduleName = "conform";
1212
packPathName = "conform.nvim";
1313

1414
maintainers = [ lib.maintainers.khaneliman ];

plugins/by-name/copilot-chat/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ with lib;
77
helpers.neovim-plugin.mkNeovimPlugin {
88
name = "copilot-chat";
99
packPathName = "CopilotChat.nvim";
10-
luaName = "CopilotChat";
10+
moduleName = "CopilotChat";
1111
package = "CopilotChat-nvim";
1212

1313
maintainers = [ maintainers.GaetanLepage ];

plugins/by-name/indent-blankline/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ with lib;
77
helpers.neovim-plugin.mkNeovimPlugin {
88
name = "indent-blankline";
99
packPathName = "indent-blankline.nvim";
10-
luaName = "ibl";
10+
moduleName = "ibl";
1111
package = "indent-blankline-nvim";
1212

1313
maintainers = [ maintainers.GaetanLepage ];

plugins/by-name/lsp-lines/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
with lib;
77
helpers.neovim-plugin.mkNeovimPlugin {
88
name = "lsp-lines";
9-
luaName = "lsp_lines";
9+
moduleName = "lsp_lines";
1010
packPathName = "lsp_lines.nvim";
1111
package = "lsp_lines-nvim";
1212

plugins/by-name/lsp-signature/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {
66
name = "lsp-signature";
77
packPathName = "lsp_signature.nvim";
88
package = "lsp_signature-nvim";
9-
luaName = "lsp_signature";
9+
moduleName = "lsp_signature";
1010

1111
maintainers = [ lib.maintainers.wadsaek ];
1212

0 commit comments

Comments
 (0)