Change neovide scale keybind to match terminal, CTRL+ and CTRL-

This commit is contained in:
Marko Korhonen 2023-11-24 21:52:58 +02:00
parent 5d47465266
commit 4c63f9ac60
No known key found for this signature in database
GPG Key ID: A7F78BCB859CD890

View File

@ -1,12 +1,12 @@
local g = vim.g
local o = vim.o
-- Change scale factor with C= and C-
-- 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()
vim.keymap.set("n", "<C-+>", function()
change_scale_factor(1.25)
end)
vim.keymap.set("n", "<C-->", function()