diff --git a/plugins/todo-comments.nix b/plugins/todo-comments.nix new file mode 100644 index 0000000..0bba0bf --- /dev/null +++ b/plugins/todo-comments.nix @@ -0,0 +1,30 @@ +_: + +{ + opts = { + enable = true; + # highlight.pattern = ".*<(KEYWORDS)\s*"; + # search.pattern = "\\b(KEYWORDS)"; + }; + + rootOpts.keymaps = [ + { + mode = "n"; + key = "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"; + } + ]; +}