feat(plugins): add todo-comments

This commit is contained in:
Nicolas Goudry 2024-06-10 08:09:00 +02:00
parent d94593789f
commit 9b8805e1a9
No known key found for this signature in database
GPG key ID: 5FC434D9FFD1DF44

30
plugins/todo-comments.nix Normal file
View file

@ -0,0 +1,30 @@
_:
{
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";
}
];
}