nixvimConfig/plugins/todo-comments.nix
2024-06-10 08:11:19 +02:00

30 lines
672 B
Nix

_:
{
opts = {
enable = true;
# highlight.pattern = ".*<(KEYWORDS)\s*";
# search.pattern = "\\b(KEYWORDS)";
};
rootOpts.keymaps = [
{
mode = "n";
key = "<leader>fT";
action.__raw = "function() TelescopeWithTheme('todo', {}, 'todo-comments') end";
options.desc = "Find TODOs";
}
{
mode = "n";
key = "]T";
action.__raw = "function() require('todo-comments').jump_next() end";
options.desc = "Next TODO comment";
}
{
mode = "n";
key = "[T";
action.__raw = "function() require('todo-comments').jump_prev() end";
options.desc = "Previous TODO comment";
}
];
}