From 5000465af9ac64b6dc90cb6024fbe2a7c8e159d6 Mon Sep 17 00:00:00 2001 From: Squibid Date: Sun, 26 Feb 2023 17:46:37 -0500 Subject: replace glow/terminal with toggleterm + smol reformatting --- lua/core/overrides/init.lua | 1 + lua/core/overrides/toggleterm.lua | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 lua/core/overrides/toggleterm.lua (limited to 'lua/core/overrides') diff --git a/lua/core/overrides/init.lua b/lua/core/overrides/init.lua index 0e60a13..783fcd0 100644 --- a/lua/core/overrides/init.lua +++ b/lua/core/overrides/init.lua @@ -20,3 +20,4 @@ require('core.overrides.alpha') require('core.overrides.notify') require('core.overrides.hover') require('core.overrides.scrollbar') +require('core.overrides.toggleterm') diff --git a/lua/core/overrides/toggleterm.lua b/lua/core/overrides/toggleterm.lua new file mode 100644 index 0000000..4f5f598 --- /dev/null +++ b/lua/core/overrides/toggleterm.lua @@ -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 -- cgit v1.2.1