require("toggleterm").setup { size = function(term) if term.direction == "horizontal" then return 20 elseif term.direction == "vertical" then return vim.o.columns * 0.4 end end, hide_numbers = true, persist_size = false, persist_mode = true, close_on_exit = true, auto_scroll = true, shell = vim.o.shell, float_opts = { border = 'curved', width = 225, height = 50, winblend = 3, zindex = 50, }, direction = 'horizontal' --direction = 'float' } -- ToggleTerm non terminal mode keybinds vim.keymap.set("n", "t", "ToggleTerm") vim.keymap.set("n", "vl", "ToggleTermCurrentLine") vim.keymap.set("n", "vv", "ToggleTermVisualLines") vim.keymap.set("n", "vs", "ToggleTermVisualSelection") -- ToggleTerm terminal mode keybinds vim.keymap.set("t", "", "")