return { { "akinsho/toggleterm.nvim", version = "*", opts = {}, config = function() local Terminal = require("toggleterm.terminal").Terminal local float = Terminal:new({ direction = "float", auto_scroll = true, persist_mode = false, start_in_insert = true, float_opts = { border = "curved", }, display_name = "RUA", }) local horizontal = Terminal:new({ direction = "horizontal", persist_mode = false, auto_scroll = true, start_in_insert = true, display_name = "RUA", }) local vertical = Terminal:new({ direction = "vertical", persist_mode = false, auto_scroll = true, start_in_insert = true, display_name = "RUA", }) local lazygit = Terminal:new({ direction = "float", auto_scroll = true, persist_mode = false, start_in_insert = true, float_opts = { border = "curved", }, display_name = "Lazygit", cmd = "lazygit", }) local map = vim.keymap.set map({ "n", "t" }, "", function() float:toggle() end, { noremap = true, silent = true }) map({ "n", "t" }, "", function() horizontal:toggle() end, { noremap = true, silent = true }) map({ "n", "t" }, "", function() vertical:toggle() end, { noremap = true, silent = true }) map({ "n", "t" }, "", function() horizontal:toggle() end) map("n", "gl", function() lazygit:toggle() end, { noremap = true, silent = true }) end, keys = { "", "", "", "", "gl" }, }, }