feat(plugins): add todo-comments
This commit is contained in:
parent
d94593789f
commit
9b8805e1a9
1 changed files with 30 additions and 0 deletions
30
plugins/todo-comments.nix
Normal file
30
plugins/todo-comments.nix
Normal 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";
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue