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

Feature Request: Support winblend option for floating window transparency

Open ToshihitoKon opened this issue 7 months ago • 2 comments

I would like to request the addition of a winblend option in the setup() function to control the transparency of the floating window.

require("CopilotChat").setup({
  window = {
    layout = 'float',
    winblend = 25, -- Desired transparency level
    -- other options...
  }
})

ToshihitoKon avatar May 01 '25 16:05 ToshihitoKon

Is this some recent neovim addition?

deathbeam avatar May 06 '25 20:05 deathbeam

The winblend option has been available in Neovim for some time and can be set on a per-window basis. https://neovim.io/doc/user/options.html#'winblend'

It might be possible to set it as shown in the following example: https://github.com/CopilotC-Nvim/CopilotChat.nvim/blob/16d897fd43d07e3b54478ccdb2f8a16e4df4f45a/lua/CopilotChat/ui/chat.lua#L340-L344

ToshihitoKon avatar May 13 '25 13:05 ToshihitoKon