akinsho / akinsho/toggleterm.nvim

[BUG] Vertical window always has a width of 8 no matter what size= is set to

オープン
#648 コメント 2 件 リアクション 1 件 担当者 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

following the exact copy and paste found in the GitHub site, I set the width for vertical to be 80 or 300 or vim.o.colums * 0.4 and it always defaults to 8 columns wide no matter what I do.

### Expected Behavior

size= should do something in vertical mode

### Steps To Reproduce

latest nvim
vim.keymap.set("n", "rp", function()
local file = vim.fn.expand("%:p") -- full path to current file
local Terminal = require("toggleterm.terminal").Terminal

local py_term = Terminal:new({
cmd = "python3 " .. file,
direction = "vertical",
size=40,
close_on_exit = false,
start_in_insert = true,
on_open = function(term)
vim.cmd("startinsert!")
end,
})
py_term:toggle()
end),

the actual size of the window is ALWAYS 8

### Environment

```Markdown
- OS:Mac OS
- neovim version:0.11.3
- Shell: does not matter, I have tried 5 different terminal programs and 3 different shells
```

### Anything else?

_No response_

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。