mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-18 01:36:27 +00:00
15 lines
576 B
Lua
15 lines
576 B
Lua
|
local utils = require("utils")
|
||
|
|
||
|
vim.g.neovide_default_scale_factor = 0.8
|
||
|
vim.g.neovide_scale_factor = vim.g.neovide_default_scale_factor
|
||
|
|
||
|
utils.keymap_set({ "n", "v" }, "<C-+>", function()
|
||
|
vim.g.neovide_scale_factor = vim.g.neovide_scale_factor + 0.1
|
||
|
end, { desc = "Zoom in" })
|
||
|
utils.keymap_set({ "n", "v" }, "<C-->", function()
|
||
|
vim.g.neovide_scale_factor = vim.g.neovide_scale_factor - 0.1
|
||
|
end, { desc = "Zoom out" })
|
||
|
utils.keymap_set({ "n", "v" }, "<C-0>", function()
|
||
|
vim.g.neovide_scale_factor = vim.g.neovide_default_scale_factor
|
||
|
end, { desc = "Zoom reset" })
|