change toggleterm size

This commit is contained in:
gameloader 2022-10-18 23:30:26 +08:00
parent 0a25676f73
commit e1ecbd9818

View File

@ -1,4 +1,11 @@
require("toggleterm").setup({
size = function(term)
if term.direction == "horizontal" then
return vim.o.lines * 0.3
elseif term.direction == "vertical" then
return vim.o.columns * 0.4
end
end,
open_mapping = [[<C-\>]],
insert_mapping = true,
start_in_insert = true,