Import toggleterm

This commit is contained in:
Andreas Wachs 2023-07-07 07:42:17 +02:00
parent 977c334422
commit 9e72f022ca
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
local Terminal = require('toggleterm.terminal').Terminal
local lazygit = Terminal:new({ cmd = "lazygit", hidden = true })
function _lazygit_toggle()
lazygit:toggle()
end
return {
{
"akinsho/toggleterm.nvim",
event = "VeryLazy",
cmd = { "ToggleTerm", "TermExec" },
opts = {
size = 10,
on_create = function()
vim.opt.foldcolumn = "0"
vim.opt.signcolumn = "no"
end,
open_mapping = [[<F7>]],
shading_factor = 2,
direction = "float",
float_opts = {
border = "curved",
highlights = { border = "Normal", background = "Normal" },
},
},
},
}