From ade1e15ac95c5650c08ce5e60a2b18d596241537 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 18 Apr 2023 12:00:12 +0100 Subject: [PATCH] Add some neovide specific config options --- config/nvim/lua/config/init.lua | 4 ++++ config/nvim/lua/config/neovide.lua | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 config/nvim/lua/config/neovide.lua diff --git a/config/nvim/lua/config/init.lua b/config/nvim/lua/config/init.lua index 616be9dc..81ed7f21 100644 --- a/config/nvim/lua/config/init.lua +++ b/config/nvim/lua/config/init.lua @@ -9,6 +9,10 @@ vim.opt.list = true vim.opt.splitbelow = true vim.opt.splitright = true +if vim.g.neovide then + require "config.neovide" +end + -- Global -- vim.g.python3_host_prog = vim.fn.stdpath "config" .. "/.venv/bin/python" vim.g.loaded_ruby_provider = 0 diff --git a/config/nvim/lua/config/neovide.lua b/config/nvim/lua/config/neovide.lua new file mode 100644 index 00000000..04ce6439 --- /dev/null +++ b/config/nvim/lua/config/neovide.lua @@ -0,0 +1,12 @@ +vim.opt.guifont = "FiraCode Nerd Font:h14" + +vim.g.neovide_padding_top = 5 +vim.g.neovide_padding_bottom = 5 +vim.g.neovide_padding_left = 5 +vim.g.neovide_padding_right = 5 + +vim.g.neovide_floating_blur_amount_x = 2.0 +vim.g.neovide_floating_blur_amount_y = 2.0 + +vim.g.neovide_hide_mouse_when_typing = true +vim.g.neovide_remember_window_size = false