From b1f99f2f082dc61945ba1158f9c0f72a4c76a6e4 Mon Sep 17 00:00:00 2001 From: Alexander Nortung Date: Thu, 28 Jul 2022 16:04:15 +0200 Subject: [PATCH] Set globals before plugin setup (#27) * Set globals before plugin setup * added extraLuaPreConfig and extraLuaPostConfig * made colorscheme execute in lua --- nixvim.nix | 71 +++++++++++++++++++++++++++++++++--------------------- 1 file changed, 44 insertions(+), 27 deletions(-) diff --git a/nixvim.nix b/nixvim.nix index cabd45d6..09b06e45 100644 --- a/nixvim.nix +++ b/nixvim.nix @@ -114,6 +114,18 @@ in description = "Extra contents for init.lua"; }; + extraLuaPreConfig = mkOption { + type = types.lines; + default = ""; + description = "Extra contents for init.lua before everything else"; + }; + + extraLuaPostConfig = mkOption { + type = types.lines; + default = ""; + description = "Extra contents for init.lua after everything else"; + }; + extraConfigVim = mkOption { type = types.lines; default = ""; @@ -203,30 +215,7 @@ in + extraWrapperArgs; }); - configure = { - customRC = cfg.extraConfigVim + '' - lua <