aboutsummaryrefslogtreecommitdiff
path: root/fnl/opt.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/opt.fnl')
-rw-r--r--fnl/opt.fnl9
1 files changed, 9 insertions, 0 deletions
diff --git a/fnl/opt.fnl b/fnl/opt.fnl
index 8b8981c..17e4e0d 100644
--- a/fnl/opt.fnl
+++ b/fnl/opt.fnl
@@ -10,6 +10,15 @@
(tset vim.o :signcolumn :yes)
(tset vim.opt :termguicolors true)
;--vim.opt.fillchars = { eob = ""}
+
+(when (= _G.settings.trans "enable")
+ (vim.api.nvim_create_autocmd "Colorscheme" {
+ :pattern :*
+ :callback (fn []
+ (vim.api.nvim_set_hl 0 :Normal {:bg :none})
+ (vim.api.nvim_set_hl 0 :NormalFloat {:bg :none})
+ (vim.api.nvim_set_hl 0 :FloatBorder {:bg :none}))}))
+
(vim.cmd (.. "colorscheme " _G.settings.colorscheme))
(when (= (vim.fn.has :persistent_undo) 1)