From c80a54e42b52ce297f0f2f71af23c562832025c7 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Fri, 24 Jan 2025 20:35:27 +0900 Subject: init --- .../TheSiahxyz/lua/thesiahxyz/plugins/comment.lua | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/comment.lua (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/comment.lua') diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/comment.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/comment.lua new file mode 100644 index 0000000..fe82b02 --- /dev/null +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/comment.lua @@ -0,0 +1,50 @@ +return { + { + "numToStr/Comment.nvim", + lazy = false, + opts = {}, + config = function() + require("Comment").setup() + end, + }, + { + "folke/todo-comments.nvim", + dependencies = { "nvim-lua/plenary.nvim" }, + opts = {}, + cmd = { "TodoTrouble", "TodoTelescope" }, + config = function() + require("todo-comments").setup() + end, + init = function() + local wk = require("which-key") + wk.add({ + mode = { "n", "v" }, + { "t", group = "TODO" }, + }) + end, + keys = { + { + "]t", + function() + require("todo-comments").jump_next() + end, + desc = "Next Todo Comment", + }, + { + "[t", + function() + require("todo-comments").jump_prev() + end, + desc = "Previous Todo Comment", + }, + { "tt", "Trouble todo toggle", desc = "Toggle TODO (Trouble)" }, + { + "tT", + "Trouble todo toggle filter = {tag = {TODO,FIX,FIXME}}", + desc = "Toggle Todo/Fix/Fixme (Trouble)", + }, + { "ft", "TodoTelescope", desc = "Find Todo" }, + { "fT", "TodoTelescope keywords=TODO,FIX,FIXME", desc = "Find Todo/Fix/Fixme" }, + }, + }, +} -- cgit v1.2.3