Files
neovim-config/lua/plugins/toggleterm.lua
2023-04-29 12:34:36 +01:00

21 lines
463 B
Lua

return {
"akinsho/toggleterm.nvim",
version = "*",
keys = { "<C-t>" },
opts = {
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"
}
}
}