nvf/modules/notes/todo-comments/todo-comments.nix

28 lines
799 B
Nix
Raw Normal View History

2023-04-18 16:14:44 +00:00
{lib, ...}:
2023-03-01 10:26:58 +00:00
with lib;
2023-03-31 02:20:35 +00:00
with builtins; {
2023-03-01 10:26:58 +00:00
options.vim.notes.todo-comments = {
enable = mkEnableOption "Enable todo-comments";
2023-03-01 10:26:58 +00: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";
};
};
2023-04-18 16:14:44 +00:00
mappings = {
quickFix = mkMappingOption "Open Todo-s in a quickfix list" "<leader>tdq";
telescope = mkMappingOption "Open Todo-s in telescope" "<leader>tds";
trouble = mkMappingOption "Open Todo-s in Trouble" "<leader>tdt";
};
2023-03-01 10:26:58 +00:00
};
}