jackMort / ChatGPT.nvim

ChatGPT Neovim Plugin: Effortless Natural Language Generation with OpenAI's ChatGPT API
Apache License 2.0
3.64k stars 312 forks source link

Customize title hl group background #243

Open Subjective opened 1 year ago

Subjective commented 1 year ago

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](https://github.com/jackMort/ChatGPT.nvim/assets/56745535/5d22c886-adb2-4a40-9ea6-542ba251fed9)
ChatGPT Theme ![image](https://github.com/jackMort/ChatGPT.nvim/assets/56745535/e7f65a07-a53c-44a6-bad6-7764855df2b0)
Current Configuration ```lua 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", }, }, }, ```
jackMort commented 8 months ago

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

petobens commented 5 months ago

You can simply do:

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