Skip to content

Commit

Permalink
feat: Updated 2 files
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored May 20, 2024
1 parent fccd096 commit ec4a3cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion lua/hurl/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ local default_config = {
split_position = 'right',
split_size = '50%',
-- Default popup options
popup_position = '50%',
popup_size = {
width = 80,
height = 40,
Expand Down
11 changes: 5 additions & 6 deletions lua/hurl/popup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,16 @@ local popups = {
}

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,
}
)

-- Show content in a popup
Expand Down

0 comments on commit ec4a3cc

Please sign in to comment.