jackMort/ChatGPT.nvim

Customize title hl group background

Open

#243 ouverte le 9 juil. 2023

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)Lua (323 forks)batch import
enhancementgood first issue

Métriques du dépôt

Stars
 (4 005 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur