From 5f8b5cc3de3ef7dc0b17ed0390f898d353efb473 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 27 Aug 2023 17:34:58 +0100 Subject: [PATCH] feat(nvim): re-add todo-comments.nvim --- after/plugin/todo-comments.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/after/plugin/todo-comments.lua b/after/plugin/todo-comments.lua index 3de9789..60a017c 100644 --- a/after/plugin/todo-comments.lua +++ b/after/plugin/todo-comments.lua @@ -4,3 +4,11 @@ if not status_ok then end todo_comments.setup {} + +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 { "tt", "TodoTelescope" } +nmap { "tq", "TodoQuickFix" }