akinsho / akinsho/toggleterm.nvim

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

Đang mở
#585 1 bình luận 9 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Lua
Star
5.6k
Fork
206
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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_

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.