From 277d93731ad6aa4aa54fe6763bf1058aeff50ac8 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Thu, 5 Jun 2025 17:11:55 +0900 Subject: modified plugins/colorschemes.lua, modified plugins/markdown.lua, modified plugins/todo.lua --- .../TheSiahxyz/lua/thesiahxyz/plugins/todo.lua | 29 +++++++++++++++++++--- 1 file changed, 25 insertions(+), 4 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 257881f..76eca3a 100644 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua @@ -9,17 +9,38 @@ return { 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, }, { "folke/todo-comments.nvim", + event = { "BufReadPre", "BufNewFile" }, dependencies = { "nvim-lua/plenary.nvim" }, - opts = {}, - cmd = { "TodoTrouble", "TodoTelescope" }, config = function() - require("todo-comments").setup() + 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") -- cgit v1.2.3