nvim/lua/plugs/toggleterm.lua

24 lines
767 B
Lua
Raw Normal View History

2023-11-16 23:29:04 +08:00
return {
-- amongst your other plugins
2024-01-16 20:16:19 +08:00
{
'akinsho/toggleterm.nvim',
2023-11-21 23:16:48 +08:00
version = "*",
2024-01-16 20:16:19 +08:00
config = function()
require("toggleterm").setup {
2023-11-21 23:16:48 +08:00
-- size can be a number or function which is passed the current terminal
size = 10,
2023-12-18 23:20:53 +08:00
open_mapping = [[<c-t>]],
2023-11-21 23:16:48 +08:00
hide_numbers = true, -- hide the number column in toggleterm buffers
shade_filetypes = {},
shade_terminals = true,
2024-01-16 20:16:19 +08:00
shading_factor = 1, -- the degree by which to darken to terminal colour, default: 1 for dark backgrounds, 3 for light
2023-11-21 23:16:48 +08:00
start_in_insert = true,
insert_mappings = true, -- whether or not the open mapping applies in insert mode
persist_size = true,
direction = 'horizontal',
}
end
},
2023-11-16 23:29:04 +08:00
}