ChatGPT.nvim icon indicating copy to clipboard operation
ChatGPT.nvim copied to clipboard

Customize title hl group background

Open Subjective opened this issue 2 years ago • 2 comments

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.

Telescope Theme

image

ChatGPT Theme

image

Current Configuration
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",
    },
  },
},

Subjective avatar Jul 09 '23 22:07 Subjective

Not yet but that's something we may want to add

jackMort avatar Dec 14 '23 12:12 jackMort

You can simply do:

    settings_window = {
        border = {
            text = {
                top = { { ' Parameters ', 'TelescopeTitle' } },
            },
        },
    },

petobens avatar Mar 22 '24 23:03 petobens