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
, vimAlias ? false
, extraConfig ? ""
, extraLuaConfig ? ""
, extraPlugins ? [ ]
, theme ? { }
, plugins ? { }
@ -55,7 +56,7 @@ let
basicConfigs = map readFile [ ./config/basic.lua ];
pluginConfigs = catAttrs "luaConfig" pluginsSettings;
allConfigs = basicConfigs ++ pluginConfigs ++ [ extraConfig ];
allConfigs = basicConfigs ++ pluginConfigs ++ [ extraLuaConfig ];
in
(wrapNeovim neovim-unwrapped {
inherit viAlias;
@ -66,7 +67,7 @@ in
withRuby = false;
configure = {
customRC = myLib.mkLuaRc allConfigs;
customRC = extraConfig + myLib.mkLuaRc allConfigs;
packages.myVimPackages = { start = allPlugins; };
};