mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-04 20:41:14 +00:00
62 lines
983 B
Nix
62 lines
983 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
check ? true,
|
|
}: let
|
|
inherit (lib.modules) mkDefault;
|
|
inherit (lib.lists) concatLists;
|
|
|
|
core = map (p: ./core + "/${p}") [
|
|
"build"
|
|
"warnings"
|
|
];
|
|
|
|
neovim = map (p: ./neovim + "/${p}") [
|
|
"basic"
|
|
"mappings"
|
|
];
|
|
|
|
plugins = map (p: ./plugins + "/${p}") [
|
|
"assistant"
|
|
"autopairs"
|
|
"comments"
|
|
"completion"
|
|
"dashboard"
|
|
"debugger"
|
|
"filetree"
|
|
"git"
|
|
"languages"
|
|
"lsp"
|
|
"minimap"
|
|
"notes"
|
|
"projects"
|
|
"rich-presence"
|
|
"session"
|
|
"snippets"
|
|
"statusline"
|
|
"tabline"
|
|
"terminal"
|
|
"theme"
|
|
"treesitter"
|
|
"ui"
|
|
"utility"
|
|
"visuals"
|
|
];
|
|
|
|
allModules = concatLists [core neovim plugins];
|
|
|
|
pkgsModule = {config, ...}: {
|
|
config = {
|
|
_module = {
|
|
inherit check;
|
|
args = {
|
|
baseModules = allModules;
|
|
pkgsPath = mkDefault pkgs.path;
|
|
pkgs = mkDefault pkgs;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
in
|
|
allModules ++ [pkgsModule]
|