Files
neovim-config/lua/plugins/config/toggleterm.lua
2023-03-05 20:13:34 +00:00

16 lines
343 B
Lua

require("toggleterm").setup {
size = function(term)
if term.direction == "horizontal" then
return 25
elseif term.direction == "vertical" then
return vim.o.columns * 0.4
end
end,
open_mapping = [[<c-t>]],
direction = "float",
float_opts = {
border = "curved"
}
}