Search for TODO comments with Telescope

This commit is contained in:
Oliver Davies 2024-04-07 00:04:21 +01:00
parent 40e05c6f70
commit ef439aefd1
2 changed files with 18 additions and 0 deletions

View file

@ -140,6 +140,23 @@ function M.oldfiles()
require("telescope").extensions.frecency.frecency(opts)
end
function M.search_todos()
local opts = {
search = "TODO",
search_dirs = {
"app",
"docroot/modules/custom",
"docroot/themes/custom",
"src",
"web/modules/custom",
"web/themes/custom",
},
prompt_title = "TODOs",
}
require("telescope.builtin").grep_string(opts)
end
return setmetatable({}, {
__index = function(_, k)
reloader()