Files
dotfiles/nvim/lua/plugins/toggleterm.lua
d0zingcat 65b75edd9a mig packer to lazy and archive
Signed-off-by: d0zingcat <leewtang@gmail.com>
2024-06-03 11:18:10 +08:00

18 lines
392 B
Lua

return {
'akinsho/toggleterm.nvim',
event = 'VeryLazy',
keys = {
{ mode = { 'n' }, '<C-t>', ':ToggleTerm<CR>' },
},
opts = {
open_mapping = [[<C-t>]],
size = function(term)
if term.direction == 'horizontal' then
return 15
else
return vim.o.columns * 0.3
end
end,
},
}