Skip to content

Commit

Permalink
open terminal in insert mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pandanoir authored Sep 25, 2024
1 parent c86f6a7 commit c386492
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nvim/lua/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,12 @@ return {
hidden = true
}

vim.keymap.set('n', '<leader>g', function() lazygit:toggle() end, { silent = true, desc = 'open lazygit' })
vim.keymap.set('n', '<leader>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', "<leader>'", function() terminal:toggle() end, { silent = true, desc = 'open terminal' })
end
},
Expand Down

0 comments on commit c386492

Please sign in to comment.