Import toggleterm
This commit is contained in:
parent
977c334422
commit
9e72f022ca
|
@ -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" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue