diff --git a/init.lua b/init.lua index ce9e4b230e095cf0452c0345f49d677bb50ec494..c3ec5fe7d5339ff537fa0d5c50c96b2dbe78282c 100644 --- a/init.lua +++ b/init.lua @@ -38,3 +38,6 @@ require("codecraft.plugin.lsp.crates") require("codecraft.plugin.dap.dap") require("codecraft.plugin.dap.virtual-text") require("codecraft.plugin.dap.dapui") + +-- NEOVIDE +require("codecraft.core.neovide") diff --git a/lua/codecraft/core/neovide.lua b/lua/codecraft/core/neovide.lua new file mode 100644 index 0000000000000000000000000000000000000000..c0c5023b87e0d760c3a7bb10ec566ce650009e46 --- /dev/null +++ b/lua/codecraft/core/neovide.lua @@ -0,0 +1,17 @@ +if vim.g.neovide then + -- 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() + 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_cursor_antialiasing = true +end