modules: move local functions to extended library

This commit is contained in:
raf 2024-02-23 18:59:05 +03:00
commit f70238d539
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
6 changed files with 63 additions and 527 deletions

View file

@ -7,21 +7,6 @@
inherit (lib.types) types;
in {
options.vim = {
debugMode = {
enable = mkEnableOption "debug mode";
level = mkOption {
type = types.int;
default = 20;
description = "Set the debug level";
};
logFile = mkOption {
type = types.path;
default = "/tmp/nvim.log";
description = "Set the log file";
};
};
enableLuaLoader = mkEnableOption "experimental Lua module loader to speed up the start up process";
leaderKey = mkOption {
@ -178,5 +163,20 @@ in {
default = "sensitive";
description = "Set the case sensitivity of search";
};
debugMode = {
enable = mkEnableOption "debug mode";
level = mkOption {
type = types.int;
default = 20;
description = "Set the debug level";
};
logFile = mkOption {
type = types.path;
default = "/tmp/nvim.log";
description = "Set the log file";
};
};
};
}