diff --git a/nvim/lua/plugins/ui.lua b/nvim/lua/plugins/ui.lua index e3716f8..8ef6387 100644 --- a/nvim/lua/plugins/ui.lua +++ b/nvim/lua/plugins/ui.lua @@ -222,9 +222,12 @@ return { hidden = true } - vim.keymap.set('n', 'g', function() lazygit:toggle() end, { silent = true, desc = 'open lazygit' }) + vim.keymap.set('n', 'gg', function() lazygit:toggle() end, { silent = true, desc = 'open lazygit' }) - local terminal = Terminal:new { direction = 'float' } + local terminal = Terminal:new { + direction = 'float', + on_open = function(term) term:set_mode('i') end, + } vim.keymap.set('n', "'", function() terminal:toggle() end, { silent = true, desc = 'open terminal' }) end },