todo-comments.nvim icon indicating copy to clipboard operation
todo-comments.nvim copied to clipboard

[question] telescope result list highlight not work

Open stone1100 opened this issue 9 months ago • 0 comments

Telescope find todo icon cannot display highlight in results view. Using default opts also not work. image

Telescope find files work fine. image

Config as below:

{
  _options = {
    keywords = {
      FIX = {
        alt = <1>{ "FIXME", "BUG", "FIXIT", "ISSUE" },
        color = "error",
        icon = " "
      },
      HACK = {
        color = "warning",
        icon = " "
      },
      NOTE = {
        alt = <2>{ "INFO" },
        color = "hint",
        icon = " "
      },
      PERF = {
        alt = <3>{ "OPTIM", "PERFORMANCE", "OPTIMIZE", "OPT" },
        icon = "󰄉 "
      },
      TEST = {
        alt = <4>{ "TESTING", "PASSED", "FAILED" },
        color = "test",
        icon = "󰰤 "
      },
      TODO = {
        color = "info",
        icon = "󰱒 "
      },
      WARN = {
        alt = <5>{ "WARNING", "XXX" },
        color = "warning",
        icon = " "
      }
    },
    search = {
      args = <6>{ "--color=never", "--no-heading", "--with-filename", "--line-number", "--column" },
      command = "rg"
    },
    signs = true
  },
  _setup = <function 1>,
  colors = <function 2>,
  hl_regex = { ".*<(PERFORMANCE|OPTIMIZE|WARNING|TESTING|FAILED|PASSED|FIXIT|ISSUE|FIXME|OPTIM|WARN|NOTE|INFO|TEST|PERF|TODO|HACK|BUG|XXX|OPT|FIX)\\s*:" },
  keywords = {
    BUG = "FIX",
    FAILED = "TEST",
    FIX = "FIX",
    FIXIT = "FIX",
    FIXME = "FIX",
    HACK = "HACK",
    INFO = "NOTE",
    ISSUE = "FIX",
    NOTE = "NOTE",
    OPT = "PERF",
    OPTIM = "PERF",
    OPTIMIZE = "PERF",
    PASSED = "TEST",
    PERF = "PERF",
    PERFORMANCE = "PERF",
    TEST = "TEST",
    TESTING = "TEST",
    TODO = "TODO",
    WARN = "WARN",
    WARNING = "WARN",
    XXX = "WARN"
  },
  loaded = true,
  ns = 69,
  options = {
    colors = {
      default = { "Identifier", "#7C3AED" },
      error = { "DiagnosticError", "ErrorMsg", "#DC2626" },
      hint = { "DiagnosticHint", "#10B981" },
      info = { "DiagnosticInfo", "#2563EB" },
      test = { "Identifier", "#FF00FF" },
      warning = { "DiagnosticWarn", "WarningMsg", "#FBBF24" }
    },
    gui_style = {
      bg = "BOLD",
      fg = "NONE"
    },
    highlight = {
      after = "fg",
      before = "",
      comments_only = true,
      exclude = {},
      keyword = "wide",
      max_line_len = 400,
      multiline = true,
      multiline_context = 10,
      multiline_pattern = "^.",
      pattern = ".*<(KEYWORDS)\\s*:",
      throttle = 200
    },
    keywords = {
      FIX = {
        alt = <table 1>,
        color = "error",
        icon = " "
      },
      HACK = {
        color = "warning",
        icon = " "
      },
      NOTE = {
        alt = <table 2>,
        color = "hint",
        icon = " "
      },
      PERF = {
        alt = <table 3>,
        icon = "󰄉 "
      },
      TEST = {
        alt = <table 4>,
        color = "test",
        icon = "󰰤 "
      },
      TODO = {
        color = "info",
        icon = "󰱒 "
      },
      WARN = {
        alt = <table 5>,
        color = "warning",
        icon = " "
      }
    },
    merge_keywords = true,
    search = {
      args = <table 6>,
      command = "rg",
      pattern = "\\b(KEYWORDS):"
    },
    sign_priority = 8,
    signs = true
  },
  search_regex = <function 3>,
  setup = <function 4>,
  signs = <function 5>
}

stone1100 avatar May 23 '24 02:05 stone1100