mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-03 17:37:14 +00:00
modules/neovim: separate options; move package into core/build
This commit is contained in:
parent
4083a74281
commit
199a8b06c5
9 changed files with 258 additions and 211 deletions
|
|
@ -3,9 +3,12 @@
|
|||
lib,
|
||||
check ? true,
|
||||
}: let
|
||||
inherit (lib) mkDefault;
|
||||
inherit (builtins) map;
|
||||
inherit (lib.modules) mkDefault;
|
||||
inherit (lib.lists) concatLists;
|
||||
|
||||
plugins = builtins.map (p: ./plugins + "/${p}") [
|
||||
# map each plugin from our plugins module into a list
|
||||
plugins = map (p: ./plugins + "/${p}") [
|
||||
"completion"
|
||||
"theme"
|
||||
"statusline"
|
||||
|
|
@ -32,14 +35,16 @@
|
|||
"debugger"
|
||||
];
|
||||
|
||||
core = builtins.map (p: ./core + "/${p}") [
|
||||
core = map (p: ./core + "/${p}") [
|
||||
"build"
|
||||
"mappings"
|
||||
"warnings"
|
||||
];
|
||||
|
||||
modules = [
|
||||
./neovim
|
||||
neovim = map (p: ./neovim + "/${p}") [
|
||||
"basic"
|
||||
"maps"
|
||||
"spellcheck"
|
||||
];
|
||||
|
||||
pkgsModule = {config, ...}: {
|
||||
|
|
@ -54,5 +59,7 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
modules = concatLists [core neovim plugins] ++ [pkgsModule];
|
||||
in
|
||||
[pkgsModule] ++ (lib.concatLists [core modules plugins])
|
||||
modules
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue