blob: b69e8f6ca66841c0e575c77bd54fab0ad9900a6c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
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
|