add options to configure extra plugins
This commit is contained in:
parent
437e0e05cf
commit
99e095d919
1 changed files with 4 additions and 2 deletions
|
@ -5,6 +5,8 @@
|
|||
, viAlias ? false
|
||||
, vimAlias ? false
|
||||
, grammarFileTypes ? [ "nix" ]
|
||||
, extraConfig ? ""
|
||||
, extraPlugins ? [ ]
|
||||
, theme ? { }
|
||||
, plugins ? { }
|
||||
, wrapNeovim
|
||||
|
@ -49,11 +51,11 @@ let
|
|||
|
||||
basePlugins = [ neovimPlugins.plenary-nvim ];
|
||||
customPlugins = catAttrs "plugins" pluginsSettings;
|
||||
allPlugins = basePlugins ++ customPlugins;
|
||||
allPlugins = basePlugins ++ customPlugins ++ extraPlugins;
|
||||
|
||||
basicConfigs = map readFile [ ./config/basic.lua ];
|
||||
pluginConfigs = catAttrs "luaConfig" pluginsSettings;
|
||||
allConfigs = basicConfigs ++ pluginConfigs;
|
||||
allConfigs = basicConfigs ++ pluginConfigs ++ [ extraConfig ];
|
||||
in
|
||||
(wrapNeovim neovim-unwrapped {
|
||||
inherit viAlias;
|
||||
|
|
Reference in a new issue