change terminal size

This commit is contained in:
2023-11-16 15:36:40 +01:00
parent f92a108579
commit c24d7fb468

View File

@@ -2,13 +2,7 @@ local config = {
active = true, active = true,
on_config_done = nil, on_config_done = nil,
-- size can be a number or function which is passed the current terminal -- size can be a number or function which is passed the current terminal
size = 20 | function(term) size = 60,
if term.direction == "horizontal" then
return 15
elseif term.direction == "vertical" then
return vim.o.columns * 0.4
end
end,
open_mapping = [[<c-t>]], open_mapping = [[<c-t>]],
hide_numbers = true, -- hide the number column in toggleterm buffers hide_numbers = true, -- hide the number column in toggleterm buffers
shade_filetypes = {}, shade_filetypes = {},