mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-10 11:15:58 +01:00
27 lines
799 B
Nix
27 lines
799 B
Nix
{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";
|
|
};
|
|
};
|
|
|
|
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";
|
|
};
|
|
};
|
|
}
|