config!: add extraConfig

BREAKING: rename extraConfig to extraLuaConfig
This commit is contained in:
Dmitriy Pleshevskiy 2023-01-08 15:40:53 +03:00
parent ecd8cd11ed
commit 020520b007
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -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; };
}; };