return { "akinsho/toggleterm.nvim", version = "*", opts = { direction = "horizontal", open_mapping = [[]], hide_numbers = true, }, cmd = { "ToggleTerm", "TermExec", "ToggleTermSendCurrentLine", "ToggleTermSendVisualLines", "ToggleTermSendVisualSelection", "ToggleTermOpenAll", "ToggleTermCloseAll", "ToggleTermToggleAll", }, keys = { [[]], { "", [[ToggleTerm direction=float]], { desc = "Toggle terminal in floating window" } }, { "", [[ToggleTerm direction=horizontal]], { desc = "Toggle terminal in horizontal bottom window" }, }, -- tmux muscle-memory for fullscreening nvim window -- replaced with true-zen.nvim -- vim.keymap.set('n', [[z]], [[ToggleTermToggleAll]]) -- vim.keymap.set('t', [[z]], [[tab split]]) { "", [[]], mode = "t", { desc = "Escape terminal mode" } }, { "", [[wincmd h]], mode = "t", { desc = "Move focus down one window" } }, { "", [[wincmd k]], mode = "t", { desc = "Move focus up one window" } }, { "", [[wincmd h]], mode = "t", { desc = "Move focus left one window" } }, { "", [[wincmd l]], mode = "t", { desc = "Move focus right one window" } }, { [[]], [[ToggleTerm]] }, { "", [[ToggleTerm]] }, { "", [[ToggleTerm]], mode = "t" }, -- { "H", "lua _clx_toggle()", { desc = "Toggle clx (console HackerNews) floating terminal" } }, -- { "G", "lua _gitui_toggle()", { desc = "Toggle gitui floating terminal" } }, }, }