14 lines
331 B
Lua
14 lines
331 B
Lua
require("toggleterm").setup({
|
|
open_mapping = [[<leader>tt]]
|
|
})
|
|
|
|
vim.cmd "autocmd! TermOpen term://* lua set_terminal_keymaps()"
|
|
local Terminal = require("toggleterm.terminal").Terminal
|
|
local lazygit = Terminal:new { cmd = 'lazygit', hidden = true, direction = 'float' }
|
|
|
|
|
|
function _LAZYGIT_TOGGLE()
|
|
lazygit:toggle()
|
|
end
|
|
|