From 0096e0baa93f26097c1ce26a9e0a72bed0c5a468 Mon Sep 17 00:00:00 2001 From: William Goulois <37271970+williamgoulois@users.noreply.github.com> Date: Sat, 3 Jul 2021 19:52:07 +0200 Subject: feat(615): transparent background option (#617) --- lua/default-config.lua | 1 + lua/settings.lua | 4 +++- utils/installer/lv-config.example.lua | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/default-config.lua b/lua/default-config.lua index 19722b1e..83ff1cc2 100644 --- a/lua/default-config.lua +++ b/lua/default-config.lua @@ -20,6 +20,7 @@ O = { smart_case = true, lushmode = false, hl_search = false, + transparent_window = false; leader_key = "space"; -- @usage pass a table with your desired languages diff --git a/lua/settings.lua b/lua/settings.lua index b137e04a..6c7f7ddf 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -13,7 +13,9 @@ cmd('let &titleold="'..TERMINAL..'"') cmd('set inccommand=split') -- show what you are substituting in real time cmd('set iskeyword+=-') -- treat dash as a separate word cmd('set whichwrap+=<,>,[,],h,l') -- move to next line with theses keys - +if O.transparent_window then + cmd('au ColorScheme * hi Normal ctermbg=none guibg=none') + end --- SETTINGS --- diff --git a/utils/installer/lv-config.example.lua b/utils/installer/lv-config.example.lua index 543f8a72..c90d4876 100644 --- a/utils/installer/lv-config.example.lua +++ b/utils/installer/lv-config.example.lua @@ -18,6 +18,7 @@ O.leader_key = ' ' O.ignore_case = true O.smart_case = true O.lushmode = false +O.transparent_window = false -- After changing plugin config it is recommended to run :PackerCompile O.plugin.hop.active = false -- cgit v1.2.3