jackMort/ChatGPT.nvim

Customize title hl group background

Open

#243 建立於 2023年7月9日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Lua (323 fork)batch import
enhancementgood first issue

倉庫指標

Star
 (4,005 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Is there any way to set custom highlight groups for the different titles ("ChatGPT", "Prompt", "System", etc.)? I'm trying to configure the windows to match my telescope theme exactly, and this is the last hurdle in the way. Thanks.

image

image

opts = {
  popup_window = {
    border = {
      highlight = "TelescopePreviewBorder",
    },
    win_options = {
      winhighlight = "Normal:TelescopePreviewNormal,FloatBorder:FloatBorder",
    },
  },
  system_window = {
    border = {
      highlight = "TelescopePromptBorder",
    },
    win_options = {
      winhighlight = "Normal:TelescopePromptNormal,FloatBorder:FloatBorder",
    },
  },
  popup_input = {
    border = {
      highlight = "TelescopePromptBorder",
    },
    win_options = {
      winhighlight = "Normal:TelescopePromptNormal,FloatBorder:FloatBorder",
    },
  },
  settings_window = {
    win_options = {
      winhighlight = "Normal:TelescopePromptNormal,FloatBorder:FloatBorder",
    },
  },
},

貢獻者指南