Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
esn89 opened this issue Jun 2, 2024 · 0 comments
Open
1 task done

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

esn89 opened this issue Jun 2, 2024 · 0 comments

Comments

@esn89
Copy link

esn89 commented Jun 2, 2024

Is there an existing issue for this?

  • I have searched the existing issues

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant