2023-03-01 11:26:58 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib;
|
2023-03-31 04:20:35 +02:00
|
|
|
with builtins; {
|
2023-03-01 11:26:58 +01:00
|
|
|
options.vim.notes.todo-comments = {
|
2023-04-02 18:58:57 +02:00
|
|
|
enable = mkEnableOption "Enable todo-comments";
|
2023-03-01 11:26:58 +01:00
|
|
|
|
|
|
|
patterns = {
|
|
|
|
highlight = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
default = ''[[.*<(KEYWORDS)(\([^\)]*\))?:]]'';
|
|
|
|
description = "vim regex pattern used for highlighting comments";
|
|
|
|
};
|
|
|
|
|
|
|
|
search = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
default = ''[[\b(KEYWORDS)(\([^\)]*\))?:]]'';
|
|
|
|
description = "ripgrep regex pattern used for searching comments";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|