akinsho / akinsho/toggleterm.nvim

[BUG] toggleterm changing terminal width strangely with `signcolumn = "yes"`

Đang mở
#582 0 bình luận 4 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

When setting `hide_numbers = true` and have `vim.opt.signcolumn = "yes"`, open some full screen app, it renders beyond the screen, e.g. lazygit
![image](https://github.com/akinsho/toggleterm.nvim/assets/30885216/f46464bf-7ba1-46f2-8800-64a2dd605359)
and if I press tab to switch to next lazygit window, It will looks like:
![image](https://github.com/akinsho/toggleterm.nvim/assets/30885216/f1abb72d-05db-4e39-960f-f567b019e6f7)
this happened after I upgrade to nvim 0.10, now I'm setting hide_numbers to false, and add a on_open hook to achieve the same behavior and it work well:
```
on_open = function()
local ol = vim.opt_local
ol.number = false
ol.signcolumn = "no"
ol.relativenumber = false
end,
```

### Expected Behavior

Work like normal terminal

### Steps To Reproduce

1. Toggleterm with direction horizontal, not sure if other direction have the same issue
2. Have `vim.opt.signcolumn = "yes"`
3. Open toggleterm and run lazygit in terminal

### Environment

```Markdown
- OS: NixOS 23.11
- neovim version: 0.10
- 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.