dotfiles/home/.config/nvim/lua/neovide.lua

30 lines
718 B
Lua
Raw Normal View History

local g = vim.g
local o = vim.o
-- Change scale factor with C+ and C-
g.neovide_scale_factor = {{@@ scale_factor|default(1.0) @@}}
local change_scale_factor = function(delta)
g.neovide_scale_factor = g.neovide_scale_factor * delta
end
vim.keymap.set("n", "<C-+>", function()
change_scale_factor(1.25)
end)
vim.keymap.set("n", "<C-->", function()
change_scale_factor(1 / 1.25)
end)
2023-12-01 13:12:38 +02:00
-- Hide mouse when typing in neovide (disabled)
g.neovide_hide_mouse_when_typing = false
-- Enable cursor particles in neovide
g.neovide_cursor_vfx_mode = "railgun"
-- Enable dark/light theme detection
g.neovide_theme = "auto"
2023-11-22 16:18:01 +02:00
-- Confirm quit
g.neovide_confirm_quit = true
-- Set font
--o.guifont = "Hack Nerd Font Mono:h15"