nixos/config/nvim/lua/config/toggleterm.lua
2023-02-09 15:47:44 +00:00

23 lines
583 B
Lua

require('toggleterm').setup {
direction = 'horizontal',
open_mapping = [[\t]],
size = function (term)
if term.direction == "horizontal" then
return 15
elseif term.direction == "vertical" then
return vim.o.columns * 0.3
end
end,
hide_numbers = true, -- hide the number column in toggleterm buffers
persist_size = false,
float_opts = {
border = 'curved',
},
winbar = {
enabled = false,
name_formatter = function(term) -- term: Terminal
return term.name
end
},
}