feat: re- scalable fontsize with [ctrl +] and [ctrl -]

This commit is contained in:
Ward Truyen
2026-03-09 11:19:32 +01:00
parent c74930b788
commit 61d8d240ce

View File

@@ -12,5 +12,12 @@ require("ward.lazy")
if vim.g.neovide then if vim.g.neovide then
vim.g.neovide_opacity = 0.75 vim.g.neovide_opacity = 0.75
vim.g.neovide_window_blurred = true vim.g.neovide_window_blurred = true
vim.o.guifont = "Source Code Pro:h14" -- vim.o.guifont = "Source Code Pro:h12"
-- Increase/Decrease scale factor
local change_scale_factor = function(delta)
vim.g.neovide_scale_factor = vim.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)
end end