akinsho / toggleterm.nvim

A neovim lua plugin to help easily manage multiple terminal windows
GNU General Public License v3.0
4.06k stars 170 forks source link

[BUG] Can't change Float ToggleTerm's background #585

Open esn89 opened 2 months ago

esn89 commented 2 months ago

Is there an existing issue for this?

Current Behavior

Currently with a set up like this:

return {
    'akinsho/toggleterm.nvim',
    version = '*',
    config = function()
        require('toggleterm').setup({
            autochdir = true,
            open_mapping = [[<c-\>]],
            shade_terminals = false,
            hide_numbers = true,
            start_in_insert = true,
            direction = 'float',
            persist_size = true,
            persist_mode = true,
            close_on_exit = false,
            float_opts = {
                border = 'curved',
                winblend = 0,
                title_pos = 'center',
            },
            highlights = {
                FloatBorder = {
                    guifg = '#e67e80',
                },
                Normal = {
                    guibg = '#ffffff',
                },
                NormalFloat = {
                    link = 'Normal',
                },
            },
        })
    end,
}

Does not seem to change the guibg to FFFFFF. It stays as my current colorscheme's background.

Expected Behavior

I expect it to turn all white.

Steps To Reproduce

Use my settings of:

return {
    'akinsho/toggleterm.nvim',
    version = '*',
    config = function()
        require('toggleterm').setup({
            autochdir = true,
            open_mapping = [[<c-\>]],
            shade_terminals = false,
            hide_numbers = true,
            start_in_insert = true,
            direction = 'float',
            persist_size = true,
            persist_mode = true,
            close_on_exit = false,
            float_opts = {
                border = 'curved',
                winblend = 0,
                title_pos = 'center',
            },
            highlights = {
                FloatBorder = {
                    guifg = '#e67e80',
                },
                Normal = {
                    guibg = '#ffffff',
                },
                NormalFloat = {
                    link = 'Normal',
                },
            },
        })
    end,
}

Environment

- OS: Sonoma 14.5
- neovim version: NVIM v0.10.0
- Shell: zsh

Anything else?

No response

Old-Farmer commented 2 days ago

Seems floating terminal also can not be shaded even when I enable shade.