dotfiles/nvim/lua/plugins/toggleterm.lua

14 lines
331 B
Lua
Raw Normal View History

2022-12-23 14:52:20 +00:00
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