From d32ac42f39eb1f8be8ac1bedfcde5174f51c03d7 Mon Sep 17 00:00:00 2001 From: Darius Auding <Darius.auding@gmx.de> Date: Tue, 8 Aug 2023 21:24:34 +0200 Subject: [PATCH] fix some lua error --- lua/codecraft/core/neovide.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/codecraft/core/neovide.lua b/lua/codecraft/core/neovide.lua index f925d1d..25a0c42 100644 --- a/lua/codecraft/core/neovide.lua +++ b/lua/codecraft/core/neovide.lua @@ -5,7 +5,7 @@ if vim.g.neovide then -- Helper function for transparency formatting local alpha = function() - return string.format("%x", math.floor(255 * vim.g.transparency or 0.899)) + return string.format("%x", math.floor((255 * vim.g.transparency) or 0.899)) end -- g:neovide_transparency should be 0 if you want to unify transparency of content and title bar. vim.g.neovide_transparency = 0.6 -- GitLab