Closed wenjinnn closed 2 months ago
Here are the code search results. I'm now analyzing these search results to write the PR.
lua/hurl/popup.lua
Update the `layout` configuration to be compatible with Neovim 0.10.
---
+++
@@ -1,13 +1,12 @@
local layout = Layout(
- {
- relative = 'editor',
- position = _HURL_GLOBAL_CONFIG.popup_position,
- size = _HURL_GLOBAL_CONFIG.popup_size,
- },
+ 'center',
Layout.Box({
Layout.Box(popups.top, { size = {
height = '20%',
} }),
Layout.Box(popups.bottom, { grow = 1 }),
- }, { dir = 'col' })
+ }, { dir = 'col' }),
+ {
+ size = _HURL_GLOBAL_CONFIG.popup_size,
+ }
)
lua/hurl/init.lua
Update the default `popup_size` configuration to use a table with `width` and `height` properties.
---
+++
@@ -3,11 +3,10 @@
mode = 'split',
show_notification = false,
auto_close = true,
- -- Default split options
+ -- Default split options
split_position = 'right',
split_size = '50%',
-- Default popup options
- popup_position = '50%',
popup_size = {
width = 80,
height = 40,
Your changes have been successfully made to the branch sweep/popup_result_window_appear_at_strange_po
. I have validated these changes using a syntax checker and a linter.
[!TIP] To recreate the pull request, edit the issue title or description.
This is an automated message generated by Sweep AI.
Hi @wenjinnn I tried to reproduce but I can't reproduce the issue. I guess something with nui.nvim library and somehow they've fixed the issue.
Details
Hi there, first of all thanks for build this amazing plugin. This issue is only shows with nvim 0.10, which I upgraded recently. Maybe this is relate on nui.nvim? The screenshot after running![image](https://github.com/jellydn/hurl.nvim/assets/30885216/653282f1-26fc-475b-9acb-9d024a84c3d1)
HurlRunnerAt
: