Skip to content

Commit

Permalink
[Update] height of float window
Browse files Browse the repository at this point in the history
  • Loading branch information
mistricky committed May 7, 2024
1 parent be29922 commit 70d7332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/codesnap/highlight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ end

function highlight_module.create_highlight_selector_window(cb_name, code)
local width = 100
local height = 20
local height = #code + 2
local row = vim.fn.winheight(0) / 2 - height / 2
local col = vim.fn.winwidth(0) / 2 - width / 2
local bufnr = vim.api.nvim_create_buf(false, true)
Expand Down

0 comments on commit 70d7332

Please sign in to comment.