We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a55117 commit 6fece15Copy full SHA for 6fece15
lua/neorg/modules/core/ui/calendar/module.lua
@@ -62,10 +62,11 @@ module.private = {
62
end,
63
64
open_window = function(options)
65
+ local MIN_HEIGHT = 14
66
+
67
local buffer, window = module.required["core.ui"].create_split(
68
"calendar-" .. tostring(os.clock()):gsub("%.", "-"),
- {},
- options.height or math.floor(vim.opt.lines:get() * 0.3)
69
+ {}, options.height or MIN_HEIGHT + (options.padding or 0)
70
)
71
72
vim.api.nvim_create_autocmd({ "WinClosed", "BufDelete" }, {
0 commit comments