Dot_Files/.config/nvim/lua/plugins/toggleterm.lua

25 lines
626 B
Lua
Raw Normal View History

2022-01-08 15:24:29 -06:00
local present, toggle_term = pcall(require, "toggleterm")
if not present then
return
end
toggle_term.setup {
hide_numbers = true, -- hide the number column in toggleterm buffers
shade_terminals = false,
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 = true, -- close the terminal window when the process exits
float_opts = {
border = "curved",
width = 120,
height = 40,
winblend = 3,
highlights = {
border = "Normal",
background = "Normal",
}
}
}