mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-31 15:30:27 +02:00
lib/helpers: extraOptionsOptions -> neovim-plugin.extraOptionsOptions
This commit is contained in:
parent
8b91bf010a
commit
e2c3459d1d
89 changed files with 103 additions and 97 deletions
|
@ -7,6 +7,7 @@ in
|
|||
maintainers = import ./maintainers.nix;
|
||||
keymaps = import ./keymap-helpers.nix {inherit lib;};
|
||||
autocmd = import ./autocmd-helpers.nix {inherit lib;};
|
||||
neovim-plugin = import ./neovim-plugin.nix {inherit lib nixvimOptions;};
|
||||
vim-plugin = import ./vim-plugin.nix {inherit lib nixvimOptions;};
|
||||
inherit (import ./to-lua.nix {inherit lib;}) toLuaObject;
|
||||
inherit nixvimTypes;
|
||||
|
|
16
lib/neovim-plugin.nix
Normal file
16
lib/neovim-plugin.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
lib,
|
||||
nixvimOptions,
|
||||
}:
|
||||
with lib; {
|
||||
extraOptionsOptions = {
|
||||
extraOptions = mkOption {
|
||||
default = {};
|
||||
type = with types; attrsOf anything;
|
||||
description = ''
|
||||
These attributes will be added to the table parameter for the setup function.
|
||||
(Can override other attributes set by nixvim)
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
|
@ -237,15 +237,4 @@ with nixvimUtils; rec {
|
|||
inherit default;
|
||||
description = "Plugin to use for ${name}";
|
||||
};
|
||||
|
||||
extraOptionsOptions = {
|
||||
extraOptions = mkOption {
|
||||
default = {};
|
||||
type = types.attrs;
|
||||
description = ''
|
||||
These attributes will be added to the table parameter for the setup function.
|
||||
(Can override other attributes set by nixvim)
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue