2023-06-17 14:35:24 +03:00
|
|
|
local g = vim.g
|
2023-11-17 08:01:52 +02:00
|
|
|
local o = vim.o
|
2023-06-17 14:35:24 +03:00
|
|
|
|
2023-11-24 21:52:58 +02:00
|
|
|
-- Change scale factor with C+ and C-
|
2023-11-17 08:01:52 +02:00
|
|
|
g.neovide_scale_factor = {{@@ scale_factor|default(1.0) @@}}
|
2023-06-17 14:35:24 +03:00
|
|
|
local change_scale_factor = function(delta)
|
|
|
|
g.neovide_scale_factor = g.neovide_scale_factor * delta
|
|
|
|
end
|
2023-11-24 21:52:58 +02:00
|
|
|
vim.keymap.set("n", "<C-+>", function()
|
2023-06-17 14:35:24 +03:00
|
|
|
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
|
2023-06-17 14:35:24 +03:00
|
|
|
|
|
|
|
-- Enable cursor particles in neovide
|
|
|
|
g.neovide_cursor_vfx_mode = "railgun"
|
2023-11-17 08:01:52 +02:00
|
|
|
|
|
|
|
-- Enable dark/light theme detection
|
|
|
|
g.neovide_theme = "auto"
|
|
|
|
|
2023-11-22 16:18:01 +02:00
|
|
|
-- Confirm quit
|
|
|
|
g.neovide_confirm_quit = true
|
|
|
|
|
2023-11-17 08:01:52 +02:00
|
|
|
-- Set font
|
|
|
|
--o.guifont = "Hack Nerd Font Mono:h15"
|