jackMort / jackMort/ChatGPT.nvim

Error when copying a large string to the input

Open
#166 1 comment 2 reactions 1 assignee View on GitHub

@jackMort is already working on this.

Since May 3, 2023.

bug
Dominant language
Lua
Stars
4k
Forks
317
PR merge metrics
No merged PRs in 30d

Description

(the input of chat window)
It is still get processed. I guess that there is no good UI way to handle this.

```
Error executing vim.schedule lua callback: ...sers\ekarni\.vim\plugged\nui.nvim/lua/nui/popup/init.lua:368: 'height' key must be a positive Integer
stack traceback:
[C]: in function 'nvim_win_set_config'
...sers\ekarni\.vim\plugged\nui.nvim/lua/nui/popup/init.lua:368: in function 'set_layout'
...rs\ekarni\.vim\plugged\nui.nvim/lua/nui/layout/float.lua:89: in function 'process'
...rs\ekarni\.vim\plugged\nui.nvim/lua/nui/layout/float.lua:123: in function 'process'
...rs\ekarni\.vim\plugged\nui.nvim/lua/nui/layout/float.lua:98: in function 'process'
...rs\ekarni\.vim\plugged\nui.nvim/lua/nui/layout/float.lua:123: in function 'process'
...ers\ekarni\.vim\plugged\nui.nvim/lua/nui/layout/init.lua:198: in function '_process_layout'
...ers\ekarni\.vim\plugged\nui.nvim/lua/nui/layout/init.lua:396: in function 'update'
...\ekarni\.vim\plugged\ChatGPT.nvim/lua/chatgpt/module.lua:100: in function 'cb'
vim/_editor.lua:263: in function
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.