mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-18 21:27:42 +00:00
Change neovide scale keybind to match terminal, CTRL+ and CTRL-
This commit is contained in:
parent
5d47465266
commit
4c63f9ac60
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user