aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--nvim/.config/nvim/lazy-lock.json1
-rw-r--r--nvim/.config/nvim/lua/tobyvin/plugins/todo-comments.lua18
2 files changed, 19 insertions, 0 deletions
diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json
index 6ff89f0..67fe8c7 100644
--- a/nvim/.config/nvim/lazy-lock.json
+++ b/nvim/.config/nvim/lazy-lock.json
@@ -65,6 +65,7 @@
"telescope-fzf-native.nvim": { "branch": "main", "commit": "fab3e2212e206f4f8b3bbaa656e129443c9b802e" },
"telescope-live-grep-args.nvim": { "branch": "master", "commit": "7de3baef1ec4fb77f7a8195fe87bebd513244b6a" },
"telescope.nvim": { "branch": "master", "commit": "e960efa60e97df58e089b00270f09d60f27202c8" },
+ "todo-comments.nvim": { "branch": "main", "commit": "c1760010f46992165995aaa52ca967f473a2e8e6" },
"tokyonight.nvim": { "branch": "main", "commit": "8b55a47165348dd1d811f9e1f867bb17bb35a360" },
"undotree": { "branch": "main", "commit": "6cb7e65e03871d2567d2c44745d3de57d07ca1fd" },
"virt-column.nvim": { "branch": "master", "commit": "36fa3be9cba9195081e934b4f9729021726c5889" },
diff --git a/nvim/.config/nvim/lua/tobyvin/plugins/todo-comments.lua b/nvim/.config/nvim/lua/tobyvin/plugins/todo-comments.lua
new file mode 100644
index 0000000..ba7362d
--- /dev/null
+++ b/nvim/.config/nvim/lua/tobyvin/plugins/todo-comments.lua
@@ -0,0 +1,18 @@
+local M = {
+ "folke/todo-comments.nvim",
+ cmd = { "TodoTrouble", "TodoTelescope" },
+ event = "BufReadPost",
+ config = true,
+}
+
+function M.init()
+ vim.keymap.set("n", "]t", function()
+ require("todo-comments").jump_next()
+ end, { desc = "next todo" })
+
+ vim.keymap.set("n", "[t", function()
+ require("todo-comments").jump_prev()
+ end, { desc = "previous todo" })
+end
+
+return M