mirror of
https://github.com/mistricky/codesnap.nvim.git
synced 2024-12-28 04:33:01 -08:00
[Update] height of float window
This commit is contained in:
parent
be2992276e
commit
70d7332479
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ end
|
||||||
|
|
||||||
function highlight_module.create_highlight_selector_window(cb_name, code)
|
function highlight_module.create_highlight_selector_window(cb_name, code)
|
||||||
local width = 100
|
local width = 100
|
||||||
local height = 20
|
local height = #code + 2
|
||||||
local row = vim.fn.winheight(0) / 2 - height / 2
|
local row = vim.fn.winheight(0) / 2 - height / 2
|
||||||
local col = vim.fn.winwidth(0) / 2 - width / 2
|
local col = vim.fn.winwidth(0) / 2 - width / 2
|
||||||
local bufnr = vim.api.nvim_create_buf(false, true)
|
local bufnr = vim.api.nvim_create_buf(false, true)
|
||||||
|
|
Loading…
Reference in a new issue