add: auto command config

This commit is contained in:
asep komarudin 2024-02-26 10:30:07 +07:00
parent 70428b51b5
commit 2cceb76b43
4 changed files with 16 additions and 7 deletions

7
lua/custom/autocmd.lua Normal file
View file

@ -0,0 +1,7 @@
local transparent_mode = require("core.config").transparent_mode
if transparent_mode ~= nil then
if transparent_mode == 1 then
vim.cmd("TransparentDisable")
vim.cmd("TransparentEnable")
end
end