mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
modules/context: add isTopLevel
option
This commit is contained in:
parent
cb413995e1
commit
c4fcbb0dcf
2 changed files with 14 additions and 0 deletions
|
@ -1,6 +1,16 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
options = {
|
||||
isTopLevel = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Whether modules are being evaluated at the "top-level".
|
||||
Should be false when evaluating nested submodules.
|
||||
'';
|
||||
internal = true;
|
||||
visible = false;
|
||||
};
|
||||
isDocs = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
|
|
|
@ -10,4 +10,8 @@
|
|||
./output.nix
|
||||
./test.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
isTopLevel = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue