require("toggleterm").setup({ direction = "horizontal", open_mapping = [[]], hide_numbers = true, -- shell = 'fish', }) vim.keymap.set('n', [[]], [[ToggleTerm direction=float]]) vim.keymap.set('n', [[]], [[ToggleTerm direction=horizontal]]) -- 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]]) vim.keymap.set('t', '', [[]]) vim.keymap.set('t', '', [[wincmd h]]) vim.keymap.set('t', '', [[wincmd k]]) vim.keymap.set('t', '', [[wincmd h]]) vim.keymap.set('t', '', [[wincmd l]]) -- vim.keymap.set('n', '', [[ToggleTerm]], { noremap = true, silent = true }) -- vim.keymap.set('t', '', [[ToggleTerm]], { noremap = true, silent = true }) -- Custom gitui terminal local Terminal = require('toggleterm.terminal').Terminal local gitui = Terminal:new({ cmd = 'gitui', direction = 'float', float_opts = { border = "curved", width = function() return math.ceil(vim.o.columns * 0.8) end, height = function() return math.ceil(vim.o.lines * 0.8) end, winblend = 3, }, hidden = true, }) function _gitui_toggle() gitui:toggle() end vim.keymap.set('n', 'G', 'lua _gitui_toggle()', { noremap = true, silent = true }) -- Custom clx commandline hacker news terminal local clx = Terminal:new({ cmd = 'clx', direction = 'float', float_opts = { border = "curved", width = function() return math.ceil(vim.o.columns * 0.8) end, height = function() return math.ceil(vim.o.lines * 0.8) end, winblend = 3, }, hidden = true, }) function _clx_toggle() clx:toggle() end vim.keymap.set('n', 'H', 'lua _clx_toggle()', { noremap = true, silent = true })