diff options
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/comment.lua')
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/comment.lua | 50 |
1 files changed, 50 insertions, 0 deletions
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" }, + { "<leader>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", + }, + { "<leader>tt", "<cmd>Trouble todo toggle<cr>", desc = "Toggle TODO (Trouble)" }, + { + "<leader>tT", + "<cmd>Trouble todo toggle filter = {tag = {TODO,FIX,FIXME}}<cr>", + desc = "Toggle Todo/Fix/Fixme (Trouble)", + }, + { "<leader>ft", "<cmd>TodoTelescope<cr>", desc = "Find Todo" }, + { "<leader>fT", "<cmd>TodoTelescope keywords=TODO,FIX,FIXME<cr>", desc = "Find Todo/Fix/Fixme" }, + }, + }, +} |
