local highlightPat = [[.*<(KEYWORDS)\s*:]] local highlightPatMe = [[.*<(KEYWORDS)\(leana8959\):]] local searchPat = [[\b(KEYWORDS):]] local searchPatMe = [[\b(KEYWORDS)\(leana8959\):]] require("todo-comments").setup { sign_priority = 6, keywords = { FIX = { icon = " ", color = "error", alt = { "FIXME", "BUG", "FIXIT", "ISSUE" } }, TODO = { icon = " ", color = "info" }, HACK = { icon = "!", color = "warning", alt = { "DEBUG" } }, WARN = { icon = "!", color = "warning", alt = { "WARNING", "XXX" } }, NOTE = { icon = "·", color = "hint", alt = { "INFO" } }, TEST = { icon = "T", color = "test", alt = { "TESTING", "PASSED", "FAILED" } }, UNIMPLEMENTED = { icon = "@", color = "hint" }, -- Q = { icon = "?", color = "warning" }, -- R = { icon = "=", color = "hint" }, }, colors = { info = { "#696c77" }, hint = { "#696c77" }, }, highlight = { pattern = { highlightPat, highlightPatMe }, }, search = { command = "rg", args = { "--color=never", "--no-heading", "--with-filename", "--line-number", "--column", "--hidden", -- search hidden files -- ignore git "--glob", "!**/.git/*", }, pattern = searchPat .. "|" .. searchPatMe, }, } -- Todo-Comments vim.keymap.set("n", "st", function() vim.cmd("TodoTelescope") end)