diff options
author | ame <[email protected]> | 2024-11-13 07:39:11 -0600 |
---|---|---|
committer | ame <[email protected]> | 2024-11-13 07:39:11 -0600 |
commit | 9a1b4f44c6e527fa14e973d8d4fb24ab97ecdcbd (patch) | |
tree | 1bae4a7a64b443db4350811ea626d37b4ff8f31d /fnl/opt.fnl | |
parent | 3e22b02b264c1e08cba79b2f4b4091b49847bcb9 (diff) |
add transparency
Diffstat (limited to 'fnl/opt.fnl')
-rw-r--r-- | fnl/opt.fnl | 9 |
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) |