aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorRaphael <glepnir@neovim.pro>2022-08-27 19:26:50 +0800
committerGitHub <noreply@github.com>2022-08-27 19:26:50 +0800
commit165295dcd9ac10a933d88803def117d5dff1eed0 (patch)
treebfdae2d76bec93562bccfbe6c03c17f33990ae78 /lua
parentchore(rust-analyzer): use `vim.json.decode` instead of `fn.json_decode` (#2096) (diff)
downloadnvim-lspconfig-165295dcd9ac10a933d88803def117d5dff1eed0.tar
nvim-lspconfig-165295dcd9ac10a933d88803def117d5dff1eed0.tar.gz
nvim-lspconfig-165295dcd9ac10a933d88803def117d5dff1eed0.tar.bz2
nvim-lspconfig-165295dcd9ac10a933d88803def117d5dff1eed0.tar.lz
nvim-lspconfig-165295dcd9ac10a933d88803def117d5dff1eed0.tar.xz
nvim-lspconfig-165295dcd9ac10a933d88803def117d5dff1eed0.tar.zst
nvim-lspconfig-165295dcd9ac10a933d88803def117d5dff1eed0.zip
fix: increase the lspinfo window row value (#2098)
* fix: increase the lspinfo window row value * fix: fixup
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/ui/windows.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lspconfig/ui/windows.lua b/lua/lspconfig/ui/windows.lua
index c4149b4c..dc02c9ef 100644
--- a/lua/lspconfig/ui/windows.lua
+++ b/lua/lspconfig/ui/windows.lua
@@ -29,7 +29,7 @@ function win_float.default_opts(options)
local width = math.floor(vim.o.columns * options.percentage)
local height = math.floor(vim.o.lines * options.percentage)
- local top = math.floor(((vim.o.lines - height) / 2) - 1)
+ local top = math.floor(((vim.o.lines - height) / 2))
local left = math.floor((vim.o.columns - width) / 2)
local opts = {
@@ -76,7 +76,7 @@ function win_float.percentage_range_window(col_range, row_range, options)
assert(row_range <= 1)
assert(row_range > 0)
height_percentage = row_range
- row_start_percentage = (1 - height_percentage) / 2
+ row_start_percentage = (1 - height_percentage) / 3
elseif type(row_range) == 'table' then
height_percentage = row_range[2] - row_range[1]
row_start_percentage = row_range[1]