jackMort/ChatGPT.nvim

Customize title hl group background

Open

#243 aberto em 9 de jul. de 2023

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)Lua (323 forks)batch import
enhancementgood first issue

Métricas do repositório

Stars
 (4.005 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador