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]]) { "t", "", [[]], { desc = "Escape terminal mode" } }, { "t", "", [[wincmd h]], { desc = "Move focus down one window" } }, { "t", "", [[wincmd k]], { desc = "Move focus up one window" } }, { "t", "", [[wincmd h]], { desc = "Move focus left one window" } }, { "t", "", [[wincmd l]], { desc = "Move focus right one window" } }, { "n", [[]], [[ToggleTerm]] }, { "n", "", [[ToggleTerm]] }, { "t", "", [[ToggleTerm]] }, -- { "H", "lua _clx_toggle()", { desc = "Toggle clx (console HackerNews) floating terminal" } }, -- { "G", "lua _gitui_toggle()", { desc = "Toggle gitui floating terminal" } }, }, }