---@diagnostic disable: lowercase-global -- You can add your own plugins here or in other files in this directory! -- I promise not to create any merge conflicts in this directory :) -- -- See the kickstart.nvim README for more information return { { 'akinsho/toggleterm.nvim', version = '*', config = function() require('toggleterm').setup {} local Terminal = require('toggleterm.terminal').Terminal local lazygit = Terminal:new { cmd = 'lazygit', hidden = true, direction = 'float' } function _lazygit_toggle() lazygit:toggle() end vim.api.nvim_set_keymap('n', 'gg', 'lua _lazygit_toggle()', { noremap = true, silent = true }) local terminal = Terminal:new { hidden = true } function _terminal_toggle() terminal:toggle() end vim.api.nvim_set_keymap('n', 'gt', 'lua _terminal_toggle()', { noremap = true, silent = true }) end, }, }