feat: add todo-comments options

This commit is contained in:
NotAShelf 2023-03-01 13:26:58 +03:00
commit 1c66c6ff65
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1
4 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{
pkgs,
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.notes.todo-comments;
in {
options.vim.notes.todo-comments = {
enable = mkEnableOption "todo-comments";
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";
};
};
};
}