From 4a6be24c3994a80bf5a355d2eee4ebfaa4707e09 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Thu, 5 Jun 2025 13:48:45 +0900 Subject: modified plugins/comment.lua, modified plugins/mini.lua, modified plugins/todo.lua, created plugins/colorizer.lua --- .../TheSiahxyz/lua/thesiahxyz/plugins/todo.lua | 64 ++++++++++++++++++---- 1 file changed, 53 insertions(+), 11 deletions(-) (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua') diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua index 19947ae..257881f 100644 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua @@ -1,14 +1,56 @@ return { - "vimichael/floatingtodo.nvim", - config = function() - require("floatingtodo").setup({ - target_file = "~/.local/share/vimwiki/todo.md", - border = "single", -- single, rounded, etc. - width = 0.8, -- width of window in % of screen size - height = 0.8, -- height of window in % of screen size - position = "center", -- topleft, topright, bottomleft, bottomright - }) + { + "vimichael/floatingtodo.nvim", + config = function() + require("floatingtodo").setup({ + target_file = "~/.local/share/vimwiki/todo.md", + border = "single", -- single, rounded, etc. + width = 0.8, -- width of window in % of screen size + height = 0.8, -- height of window in % of screen size + position = "center", -- topleft, topright, bottomleft, bottomright + }) - vim.keymap.set("n", "tf", ":Td", { silent = true, desc = "Todo floating" }) - end, + vim.keymap.set("n", "tf", ":Td", { silent = true, desc = "TODO floating" }) + 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