mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
modules/options: backport opts
as an alias
This commit is contained in:
parent
b3ea5256e0
commit
5bd3cb1ef6
2 changed files with 16 additions and 0 deletions
|
@ -19,6 +19,12 @@ with lib; {
|
|||
};
|
||||
};
|
||||
|
||||
# Added to main 2024-03-29
|
||||
# Backported 2024-04-22
|
||||
imports = [
|
||||
(mkAliasOptionModule ["opts"] ["options"])
|
||||
];
|
||||
|
||||
config = {
|
||||
extraConfigLuaPre =
|
||||
optionalString (config.globals != {}) ''
|
||||
|
|
10
tests/test-sources/modules/options.nix
Normal file
10
tests/test-sources/modules/options.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
opts-backport = {
|
||||
opts = {};
|
||||
};
|
||||
|
||||
example = {
|
||||
options = {};
|
||||
globals = {};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue