replace glow/terminal with toggleterm + smol reformatting

This commit is contained in:
squibid
2023-02-26 17:46:37 -05:00
parent 490bc8e020
commit 0ab783388f
4 changed files with 32 additions and 8 deletions

View File

@ -0,0 +1,19 @@
require('toggleterm').setup {
shade_terminals = true,
}
local Terminal = require('toggleterm.terminal').Terminal
local glow = Terminal:new({
cmd = "glow",
hidden = true,
direction = "float",
float_opts = {
border = "shadow",
width = 120,
height = 50,
}
})
function _glow()
glow:toggle()
end