From 95ffb7e78b2b8d6d1d674769385ffddb709f17aa Mon Sep 17 00:00:00 2001 From: Darius Auding <Darius.auding@gmx.de> Date: Wed, 31 May 2023 21:36:29 +0200 Subject: [PATCH] set neovide animation length to 0.1 --- lua/codecraft/core/neovide.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lua/codecraft/core/neovide.lua b/lua/codecraft/core/neovide.lua index c0c5023..2741a49 100644 --- a/lua/codecraft/core/neovide.lua +++ b/lua/codecraft/core/neovide.lua @@ -1,17 +1,17 @@ if vim.g.neovide then - -- Put anything you want to happen only in Neovide here + -- Put anything you want to happen only in Neovide here vim.o.guifont = "JetBrainsMono Nerd Font:h13:b" -- Helper function for transparency formatting -local alpha = function() - return string.format("%x", math.floor(255 * vim.g.transparency or 0.8)) -end --- g:neovide_transparency should be 0 if you want to unify transparency of content and title bar. -vim.g.neovide_transparency = 0.75 -vim.g.transparency = 0.4 -vim.g.neovide_background_color = "#0f1117" .. alpha() + local alpha = function() + return string.format("%x", math.floor(255 * vim.g.transparency or 0.8)) + end + -- g:neovide_transparency should be 0 if you want to unify transparency of content and title bar. + vim.g.neovide_transparency = 0.75 + vim.g.transparency = 0.4 + vim.g.neovide_background_color = "#0f1117" .. alpha() vim.g.neovide_floating_blur_amount_x = 2.0 -vim.g.neovide_floating_blur_amount_y = 2.0 - vim.g.neovide_cursor_animation_length = 0 + vim.g.neovide_floating_blur_amount_y = 2.0 + vim.g.neovide_cursor_animation_length = 0.1 vim.g.neovide_cursor_antialiasing = true end -- GitLab