standalone: Expose options

This can be used to teach `nixd` about NixVim options.
This commit is contained in:
traxys 2024-05-14 20:04:36 +02:00
parent 2705ce0ec6
commit e035d22b64
2 changed files with 16 additions and 1 deletions

View file

@ -44,7 +44,8 @@ let
mkNvim =
mod:
let
config = handleAssertions (mkEval mod).config;
evaledModule = mkEval mod;
config = handleAssertions evaledModule.config;
in
(pkgs.symlinkJoin {
name = "nixvim";
@ -56,6 +57,7 @@ let
})
// {
inherit config;
inherit (evaledModule) options;
nixvimExtend =
extension:
mkNvim {