1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-28 14:09:47 +01:00
neovim-flake/modules/notes/todo-comments/todo-comments.nix
2023-04-02 19:59:08 +03:00

25 lines
561 B
Nix

{
config,
lib,
...
}:
with lib;
with builtins; {
options.vim.notes.todo-comments = {
enable = mkEnableOption "Enable 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";
};
};
};
}