mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 17:59:48 +01:00
29 lines
609 B
Nix
29 lines
609 B
Nix
|
{
|
||
|
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";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|