diff options
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua')
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua deleted file mode 100644 index 76eca3a..0000000 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua +++ /dev/null @@ -1,77 +0,0 @@ -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 - }) - vim.keymap.set("n", "<leader>tf", ":Td<CR>", { silent = true, desc = "TODO floating" }) - end, - }, - { - "folke/todo-comments.nvim", - event = { "BufReadPre", "BufNewFile" }, - dependencies = { "nvim-lua/plenary.nvim" }, - config = function() - require("todo-comments").setup({ - keywords = { - FIX = { - icon = " ", -- icon used for the sign, and in search results - color = "error", -- can be a hex color, or a named color (see below) - alt = { "FIXME", "BUG", "FIXIT", "ISSUE" }, -- a set of other keywords that all map to this FIX keywords - -- signs = false, -- configure signs for some keywords individually - }, - TODO = { icon = " ", color = "info" }, - HACK = { icon = " ", color = "warning" }, - WARN = { icon = " ", color = "warning", alt = { "WARNING", "XXX" } }, - PERF = { icon = " ", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE" } }, - NOTE = { icon = " ", color = "hint", alt = { "INFO" } }, - TEST = { icon = " ", color = "test", alt = { "TESTING", "PASSED", "FAILED" } }, - }, - colors = { - error = { "DiagnosticError", "ErrorMsg", "#DC2626" }, - warning = { "DiagnosticWarn", "WarningMsg", "#FBBF24" }, - info = { "DiagnosticInfo", "#2563EB" }, - hint = { "DiagnosticHint", "#10B981" }, - default = { "Identifier", "#7C3AED" }, - test = { "Identifier", "#FF00FF" }, - }, - }) - 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" }, - }, - }, -} |
