use only plugins from flake config
This commit is contained in:
parent
93b5f04284
commit
4811c8054c
2 changed files with 5 additions and 7 deletions
|
@ -9,7 +9,7 @@
|
||||||
, wrapNeovim
|
, wrapNeovim
|
||||||
, neovim-unwrapped
|
, neovim-unwrapped
|
||||||
, tree-sitter
|
, tree-sitter
|
||||||
, vimPlugins
|
, neovimPlugins
|
||||||
, lib
|
, lib
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
|
@ -18,7 +18,7 @@ let
|
||||||
inherit (builtins) catAttrs isFunction readFile;
|
inherit (builtins) catAttrs isFunction readFile;
|
||||||
myLib = import ./lib.nix { inherit lib; };
|
myLib = import ./lib.nix { inherit lib; };
|
||||||
|
|
||||||
pluginParams = vimPlugins // {
|
pluginParams = neovimPlugins // {
|
||||||
inherit tree-sitter grammarFileTypes;
|
inherit tree-sitter grammarFileTypes;
|
||||||
inherit enableDevIcons enableTabby enableOrgMode;
|
inherit enableDevIcons enableTabby enableOrgMode;
|
||||||
themeCfg = theme;
|
themeCfg = theme;
|
||||||
|
@ -40,7 +40,7 @@ let
|
||||||
./plugins/ux
|
./plugins/ux
|
||||||
];
|
];
|
||||||
|
|
||||||
basePlugins = [ vimPlugins.plenary-nvim ];
|
basePlugins = [ neovimPlugins.plenary-nvim ];
|
||||||
customPlugins = catAttrs "plugins" plugins;
|
customPlugins = catAttrs "plugins" plugins;
|
||||||
allPlugins = basePlugins ++ customPlugins;
|
allPlugins = basePlugins ++ customPlugins;
|
||||||
|
|
||||||
|
|
|
@ -212,11 +212,9 @@
|
||||||
|
|
||||||
buildPluginValuePair = n: nameValuePair n (buildPlugin n);
|
buildPluginValuePair = n: nameValuePair n (buildPlugin n);
|
||||||
|
|
||||||
customPlugins = (listToAttrs (map buildPluginValuePair inputPlugins));
|
neovimPlugins = (listToAttrs (map buildPluginValuePair inputPlugins));
|
||||||
in
|
in
|
||||||
{
|
{ inherit neovimPlugins; };
|
||||||
vimPlugins = vimPlugins // customPlugins;
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
overlays = {
|
overlays = {
|
||||||
|
|
Reference in a new issue