2023-02-01 19:11:37 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
}: let
|
2024-04-07 14:16:08 +00:00
|
|
|
inherit (lib.modules) mkDefault;
|
|
|
|
inherit (lib.lists) concatLists;
|
2024-09-22 19:52:10 +00:00
|
|
|
allModules = let
|
|
|
|
# The core neovim modules.
|
|
|
|
# Contains configuration for core neovim features
|
|
|
|
# such as spellchecking, mappings, and the init script (init.vim).
|
2024-09-25 22:46:47 +00:00
|
|
|
neovim = map (p: ./neovim + "/${p}") [
|
2024-09-22 19:52:10 +00:00
|
|
|
"init"
|
|
|
|
"mappings"
|
|
|
|
];
|
2024-04-07 14:16:08 +00:00
|
|
|
|
2024-09-22 19:52:10 +00:00
|
|
|
# Individual plugin modules, separated by the type of plugin.
|
|
|
|
# While adding a new type, you must make sure your type is
|
|
|
|
# included in the list below.
|
2024-09-25 22:46:47 +00:00
|
|
|
plugins = map (p: ./plugins + "/${p}") [
|
2024-09-22 19:52:10 +00:00
|
|
|
"assistant"
|
|
|
|
"autopairs"
|
|
|
|
"comments"
|
|
|
|
"completion"
|
|
|
|
"dashboard"
|
|
|
|
"debugger"
|
|
|
|
"filetree"
|
2024-09-26 14:43:14 +00:00
|
|
|
"formatter"
|
2024-09-22 19:52:10 +00:00
|
|
|
"git"
|
|
|
|
"languages"
|
|
|
|
"lsp"
|
|
|
|
"minimap"
|
|
|
|
"notes"
|
|
|
|
"projects"
|
|
|
|
"rich-presence"
|
|
|
|
"session"
|
|
|
|
"snippets"
|
|
|
|
# "spellcheck" # FIXME: see neovim/init/spellcheck.nix
|
|
|
|
"statusline"
|
|
|
|
"tabline"
|
|
|
|
"terminal"
|
|
|
|
"theme"
|
|
|
|
"treesitter"
|
|
|
|
"ui"
|
|
|
|
"utility"
|
|
|
|
"visuals"
|
|
|
|
];
|
2023-02-01 19:11:37 +00:00
|
|
|
|
2024-09-22 19:52:10 +00:00
|
|
|
# The neovim wrapper, used to build a wrapped neovim package
|
|
|
|
# using the configuration passed in `neovim` and `plugins` modules.
|
2024-09-25 22:46:47 +00:00
|
|
|
wrapper = map (p: ./wrapper + "/${p}") [
|
2024-09-22 19:52:10 +00:00
|
|
|
"build"
|
|
|
|
"rc"
|
|
|
|
"warnings"
|
|
|
|
];
|
2024-04-07 14:16:08 +00:00
|
|
|
|
2024-09-22 19:52:10 +00:00
|
|
|
# Extra modules, such as deprecation warnings
|
|
|
|
# or renames in one place.
|
2024-09-25 22:46:47 +00:00
|
|
|
extra = map (p: ./extra + "/${p}") [
|
2024-09-22 19:52:10 +00:00
|
|
|
"deprecations.nix"
|
|
|
|
];
|
|
|
|
in
|
|
|
|
concatLists [neovim plugins wrapper extra];
|
2023-02-01 19:11:37 +00:00
|
|
|
in
|
2024-09-22 19:52:10 +00:00
|
|
|
allModules
|
|
|
|
++ [
|
|
|
|
{
|
|
|
|
_module.args = {
|
|
|
|
baseModules = allModules;
|
|
|
|
pkgsPath = mkDefault pkgs.path;
|
|
|
|
pkgs = mkDefault pkgs;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
]
|