ソースを参照

feat(615): transparent background option (#617)

William Goulois 4 年 前
コミット
0096e0baa9
3 ファイル変更5 行追加1 行削除
  1. 1 0
      lua/default-config.lua
  2. 3 1
      lua/settings.lua
  3. 1 0
      utils/installer/lv-config.example.lua

+ 1 - 0
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

+ 3 - 1
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  ---
 

+ 1 - 0
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