diff options
| author | Abouzar Parvan <[email protected]> | 2022-03-21 16:04:48 +0330 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2022-03-21 16:04:48 +0330 | 
| commit | 4affc217712e5771877d7a445c04edf1c19e4bc7 (patch) | |
| tree | f47302398b95bb929faa65c3259f1ba4a9fa86bf /lua | |
| parent | 80810c36dee2d5b2faeb6989779bae29a5b3bbcc (diff) | |
fix(peek): make sure popup_options are positive (#2373)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lvim/lsp/peek.lua | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/lua/lvim/lsp/peek.lua b/lua/lvim/lsp/peek.lua index f006f934..88181c60 100644 --- a/lua/lvim/lsp/peek.lua +++ b/lua/lvim/lsp/peek.lua @@ -33,7 +33,8 @@ local function create_floating_file(location, opts)      false    )    local width, height = vim.lsp.util._make_floating_popup_size(contents, opts) -  opts = vim.lsp.util.make_floating_popup_options(width, height, opts) +  local if_nil = vim.F.if_nil +  opts = vim.lsp.util.make_floating_popup_options(if_nil(width, 30), if_nil(height, 10), opts)    -- Don't make it minimal as it is meant to be fully featured    opts["style"] = nil | 
