This repository has been archived on 2025-01-07. You can view files and clone it, but cannot push or open issues or pull requests.
opdavies.nvim/after/plugin/todo-comments.lua

15 lines
444 B
Lua
Raw Normal View History

local status_ok, todo_comments = pcall(require, "todo-comments")
if not status_ok then
return
end
todo_comments.setup {}
2023-08-27 16:34:58 +00:00
local nmap = require "opdavies.keymap".nmap
nmap { "[t", function() todo_comments.jump_prev() end, { desc = "Previous todo comment" }}
nmap { "]t", function() todo_comments.jump_next() end, { desc = "Next todo comment" }}
nmap { "<leader>tt", "<cmd>TodoTelescope<cr>" }
nmap { "<leader>tq", "<cmd>TodoQuickFix<cr>" }