new config old version is now on v1 branch

This commit is contained in:
2023-04-30 18:41:13 -04:00
parent b8aa24ed96
commit 5da0e3dc7c
77 changed files with 1611 additions and 1267 deletions

View File

@ -0,0 +1,33 @@
local status_ok, toggleterm = pcall(require, "toggleterm")
if not status_ok then
return
end
toggleterm.setup {
shade_terminals = true,
float_opts = {
border = 'shadow',
},
on_open = function()
vim.opt.cmdheight = 0
end,
on_close = function()
vim.opt.cmdheight = 1
end
}
local term = require('toggleterm.terminal').Terminal
local glow = term:new({
cmd = "glow",
hidden = true,
direction = "float",
float_opts = {
border = "shadow",
width = 120,
height = 50,
}
})
function _glow()
glow:toggle()
end