akinsho / akinsho/toggleterm.nvim

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

未关闭
#585 1 条评论 9 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Lua
星标
5.6k
派生
206
PR 合并指标
30 天内没有已合并 PR

描述

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

Currently with a set up like this:

```lua
return {
'akinsho/toggleterm.nvim',
version = '*',
config = function()
require('toggleterm').setup({
autochdir = true,
open_mapping = [[]],
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:

```lua
return {
'akinsho/toggleterm.nvim',
version = '*',
config = function()
require('toggleterm').setup({
autochdir = true,
open_mapping = [[]],
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

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

### Anything else?

_No response_

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。