plugins/neorg: switch to mkNeovimPlugin

This commit is contained in:
Gaetan Lepage 2024-12-13 00:45:38 +01:00 committed by nix-infra-bot
parent c0550513b3
commit 2b5a4a3896
3 changed files with 296 additions and 197 deletions

View file

@ -0,0 +1,32 @@
{ lib, ... }:
let
basePluginPath = [
"plugins"
"neorg"
];
in
{
imports = [
(lib.mkRenamedOptionModule (basePluginPath ++ [ "modules" ]) (
basePluginPath
++ [
"settings"
"load"
]
))
(lib.mkRemovedOptionModule (
basePluginPath
++ [
"logger"
"modes"
]
) "Please use `settings.logger.modes` but you now need to provide a list of submodules.")
(lib.mkRenamedOptionModule (basePluginPath ++ [ "neorgTelescopePackage" ]) (
basePluginPath
++ [
"telescopeIntegration"
"package"
]
))
];
}