nvim/lua/term.lua
2021-09-12 16:42:08 +02:00

16 lines
677 B
Lua

require("toggleterm").setup{
-- size can be a number or function which is passed the current terminal
size = 20,
open_mapping = [[<c-\>]],
hide_numbers = true, -- hide the number column in toggleterm buffers
shade_filetypes = {},
shade_terminals = true,
shading_factor = 1, -- the degree by which to darken to terminal colour, default: 1 for dark backgrounds, 3 for light
start_in_insert = true,
insert_mappings = true, -- whether or not the open mapping applies in insert mode
persist_size = true,
direction = 'horizontal',
close_on_exit = false, -- close the terminal window when the process exits
shell = vim.o.shell, -- change the default shell
}