change toggleterm size
This commit is contained in:
parent
0a25676f73
commit
e1ecbd9818
@ -1,4 +1,11 @@
|
|||||||
require("toggleterm").setup({
|
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-\>]],
|
open_mapping = [[<C-\>]],
|
||||||
insert_mapping = true,
|
insert_mapping = true,
|
||||||
start_in_insert = true,
|
start_in_insert = true,
|
||||||
|
Loading…
Reference in New Issue
Block a user