about summary refs log tree commit diff
path: root/neovim-colemak/lua/config/neovide.lua
diff options
context:
space:
mode:
Diffstat (limited to 'neovim-colemak/lua/config/neovide.lua')
-rw-r--r--neovim-colemak/lua/config/neovide.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/neovim-colemak/lua/config/neovide.lua b/neovim-colemak/lua/config/neovide.lua
new file mode 100644
index 0000000..9f86d98
--- /dev/null
+++ b/neovim-colemak/lua/config/neovide.lua
@@ -0,0 +1,13 @@
+if vim.g.neovide then
+  -- Some Code
+  vim.o.guifont = "InconsolataGo Nerd Font"
+
+  -- 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 = 1.0
+  vim.g.transparency = 0.8
+  vim.g.neovide_background_color = "#0f1117" .. alpha()
+end