config!: add extraConfig
BREAKING: rename extraConfig to extraLuaConfig
This commit is contained in:
parent
ecd8cd11ed
commit
020520b007
1 changed files with 3 additions and 2 deletions
|
@ -5,6 +5,7 @@
|
||||||
, viAlias ? false
|
, viAlias ? false
|
||||||
, vimAlias ? false
|
, vimAlias ? false
|
||||||
, extraConfig ? ""
|
, extraConfig ? ""
|
||||||
|
, extraLuaConfig ? ""
|
||||||
, extraPlugins ? [ ]
|
, extraPlugins ? [ ]
|
||||||
, theme ? { }
|
, theme ? { }
|
||||||
, plugins ? { }
|
, plugins ? { }
|
||||||
|
@ -55,7 +56,7 @@ let
|
||||||
|
|
||||||
basicConfigs = map readFile [ ./config/basic.lua ];
|
basicConfigs = map readFile [ ./config/basic.lua ];
|
||||||
pluginConfigs = catAttrs "luaConfig" pluginsSettings;
|
pluginConfigs = catAttrs "luaConfig" pluginsSettings;
|
||||||
allConfigs = basicConfigs ++ pluginConfigs ++ [ extraConfig ];
|
allConfigs = basicConfigs ++ pluginConfigs ++ [ extraLuaConfig ];
|
||||||
in
|
in
|
||||||
(wrapNeovim neovim-unwrapped {
|
(wrapNeovim neovim-unwrapped {
|
||||||
inherit viAlias;
|
inherit viAlias;
|
||||||
|
@ -66,7 +67,7 @@ in
|
||||||
withRuby = false;
|
withRuby = false;
|
||||||
|
|
||||||
configure = {
|
configure = {
|
||||||
customRC = myLib.mkLuaRc allConfigs;
|
customRC = extraConfig + myLib.mkLuaRc allConfigs;
|
||||||
|
|
||||||
packages.myVimPackages = { start = allPlugins; };
|
packages.myVimPackages = { start = allPlugins; };
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue